]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 10 Jun 2014 05:09:46 +0000 (10:39 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jun 2014 20:52:35 +0000 (22:52 +0200)
commitd60a1f88d5e67198f62a381693017a0b191d3553
treebff6af59d0758432147ba070ec7b41c9277ae627
parent828d7e516d6fa1d126277bd69a9e20fa277f415a
cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR

cpufreq-cpu0 uses thermal framework to register a cooling device, but doesn't
depend on it as there are dummy calls provided by thermal layer when
CONFIG_THERMAL=n. And when these calls fail, the driver is still usable.

Similar explanation is valid for regulators as well. We do have dummy calls
available for regulator APIs and the driver can work even when those calls
fail.

So, we don't really need to mention thermal and regulators as a dependency for
cpufreq-cpu0 in Kconfig as platforms without support for thermal/regulator can
also use this driver. Remove this dependency.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig