Skip to content

Commit 3b062a0

Browse files
zhipeng66vireshk
authored andcommitted
cpufreq: dt-platdev: Support building as module
Make the cpufreq platdev driver as tristate so that it can be built as loadable module. Also add MODULE_LICENSE to support building as module. Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com> [ Viresh: Merged two commits, included module.h ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent b79ead0 commit 3b062a0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/cpufreq/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ config CPUFREQ_DT
218218
If in doubt, say N.
219219

220220
config CPUFREQ_DT_PLATDEV
221-
bool
221+
tristate "Generic DT based cpufreq platdev driver"
222222
help
223223
This adds a generic DT based cpufreq platdev driver for frequency
224224
management. This creates a 'cpufreq-dt' platform device, on the

drivers/cpufreq/cpufreq-dt-platdev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <linux/err.h>
8+
#include <linux/module.h>
89
#include <linux/of.h>
910
#include <linux/platform_device.h>
1011

@@ -217,3 +218,4 @@ static int __init cpufreq_dt_platdev_init(void)
217218
sizeof(struct cpufreq_dt_platform_data)));
218219
}
219220
core_initcall(cpufreq_dt_platdev_init);
221+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)