cpufreq: arm_big_little_dt: Instantiate as platform_driver
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 20 May 2013 04:27:17 +0000 (09:57 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 May 2013 10:43:33 +0000 (12:43 +0200)
As multiplatform build is being adopted by more and more ARM platforms, initcall
function should be used very carefully. For example, when both arm_big_little_dt
and cpufreq-cpu0 drivers are compiled in, arm_big_little_dt driver may try to
register even if we had platform device for cpufreq-cpu0 registered.

To eliminate this undesired the effect, the patch changes arm_big_little_dt
driver to have it instantiated as a platform_driver. Then it will only run on
platforms that create the platform_device "arm-bL-cpufreq-dt".

Reported-and-tested-by: Rob Herring <robherring2@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

No differences found