]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: dbx500: add a Kconfig symbol
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 May 2017 12:12:29 +0000 (14:12 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 May 2017 11:40:16 +0000 (13:40 +0200)
commit1f49a809b604cff18021dbe34289976074f364f5
tree42b27a2c0aa33530c4e944db54e671246840a8e0
parent457ff2b469f093facb64921adbe0eb96a356c4c2
cpufreq: dbx500: add a Kconfig symbol

Moving the cooling code into the cpufreq driver caused a possible build failure
when the cpu_thermal helper code is a loadable module or disabled:

drivers/cpufreq/dbx500-cpufreq.o: In function `dbx500_cpufreq_ready':
dbx500-cpufreq.c:(.text.dbx500_cpufreq_ready+0x4): undefined reference to `cpufreq_cooling_register'

This adds the same dependency that we have in other cpufreq drivers,
forcing the driver to be disabled when we can't possibly link it.

Fixes: e048d3ef9f50 (cpufreq: dbx500: Manage cooling device from cpufreq driver)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Makefile