]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: dt: Add generic platform-device creation support
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 30 Mar 2016 08:15:26 +0000 (13:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:18:42 +0000 (01:18 +0200)
commit488a3f3521a6558ee8f9750887f9ff51a6427ed1
tree2964e69e5e24ea1dfaf7c4682b47cd04ba7aaa5b
parentce12cc9ad39f25501e36a65b6cf267984f391215
cpufreq: dt: Add generic platform-device creation support

Multiple platforms are using the generic cpufreq-dt driver now, and all
of them are required to create a platform device with name "cpufreq-dt",
in order to get the cpufreq-dt probed.

Many of them do it from platform code, others have special drivers just
to do that.

It would be more sensible to do this at a generic place, where all such
platform can mark their entries.

This patch adds a separate file to get this device created. Currently
the compat list of platforms that we support is empty, and will be
filled in as and when we move platforms to use it.

It always compiles as part of the kernel and so doesn't need a
module-exit operation.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig
drivers/cpufreq/Makefile
drivers/cpufreq/cpufreq-dt-platdev.c [new file with mode: 0644]