]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: mediatek: allow building as a module
authorArnd Bergmann <arnd@arndb.de>
Mon, 29 Feb 2016 16:04:21 +0000 (17:04 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Mar 2016 01:43:05 +0000 (02:43 +0100)
commit8163d0a8cf60d6be938810e1851c8d652c994818
treeda26ea54281ff1a20039441a2402b343448505e1
parentcb73026af6c0307ef08b5570384d2da4b7bb4ece
cpufreq: mediatek: allow building as a module

The MT8173 cpufreq driver can currently only be built-in, but
it has a Kconfig dependency on the thermal core. THERMAL
can be a loadable module, which in turn makes this driver
impossible to build.

It is nicer to make the cpufreq driver a module as well, so
this patch turns the option in to a 'tristate' and adapts
the dependency accordingly.

The driver has no module_exit() function, so it will continue
to not support unloading, but it can be built as a module
and loaded at runtime now.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 851f9b32cfa1 (cpufreq: Add ARM_MT8173_CPUFREQ dependency on THERMAL)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/mt8173-cpufreq.c