]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: qoriq: Don't show cooling device messages if THERMAL_OF undefined
authorJia Hongtao <hongtao.jia@nxp.com>
Mon, 18 Apr 2016 07:59:32 +0000 (15:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 14:00:42 +0000 (16:00 +0200)
commit65e210be8f213a379242f20c9ddcb6ab96cc01bd
tree32ebf73e29e5f97b24fc47fe350d673acee8345f
parent70c2a89178efb7d2a3cdf543683c3ebeb3d72d1d
cpufreq: qoriq: Don't show cooling device messages if THERMAL_OF undefined

When THERMAL_OF is undefined the cooling device messages should not be
shown. -ENOSYS is returned from of_cpufreq_cooling_register() when
THERMAL_OF is undefined.

Signed-off-by: Jia Hongtao <hongtao.jia@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/qoriq-cpufreq.c