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)
commitf56aad1d98f1c0c6df513abcd275a4d914adc1ef
tree2964e69e5e24ea1dfaf7c4682b47cd04ba7aaa5b
parent7e67e239a4f32fa3e2d51dd9a7930018651635b6
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]