cpufreq: arm_big_little_dt: Register driver only if DT has valid data
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 17 May 2013 11:25:11 +0000 (11:25 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 May 2013 10:42:34 +0000 (12:42 +0200)
commit92a9b5c291c72aa9899021699458f0b6e328b940
tree70063db2fa775cf57c182dc00df25929183ece04
parentb5f14720a6421aab841d9f03f0129cfbe7db5133
cpufreq: arm_big_little_dt: Register driver only if DT has valid data

If arm_big_little_dt driver is enabled, then it will always try to register with
big LITTLE cpufreq core driver. In case DT doesn't have relevant data for cpu
nodes, i.e. operating points aren't present, then we should exit early and
shouldn't register with big LITTLE cpufreq core driver. Otherwise we will fail
continuously from the driver->init() routine.

This patch fixes this issue.

Reported-and-tested-by: Jon Medhurst <tixy@linaro.org>
Reviewed-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/arm_big_little_dt.c