Thread (33 messages) 33 messages, 5 authors, 2015-06-24

[PATCH 7/8] cpufreq: st: Provide runtime initialised driver for ST's platforms

From: Paul Bolle <hidden>
Date: 2015-06-23 08:00:49
Also in: linux-devicetree, linux-pm, lkml

On Mon, 2015-06-22 at 16:43 +0100, Lee Jones wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
 
+config ARM_ST_CPUFREQ
+> 	> bool "ST CPUFreq support"
+> 	> depends on SOC_STIH407
+> 	> help
+> 	>   OPP list for cpufreq-dt driver can be provided through DT or can be
+> 	>   created at runtime.  Select this if you want create OPP list at runtime.
quoted hunk ↗ jump to hunk
--- a/drivers/cpufreq/Makefile
+++ b/drivers/cpufreq/Makefile
+obj-$(CONFIG_ARM_ST_CPUFREQ)		+= st-cpufreq.o
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/drivers/cpufreq/st-cpufreq.c
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+#include <linux/module.h>
+MODULE_DEVICE_TABLE(of, sti_cpufreq_of_match);

+module_platform_driver(sti_cpufreq);
+MODULE_AUTHOR("Ajitpal Singh [off-list ref]");
+MODULE_DESCRIPTION("Creates an OPP list for cpufreq-cpu0 at runtime");
+MODULE_LICENSE("GPL v2");

(There's a mismatch between the license used in the comment at the top
of this file and the ident used in the MODULE_LICENSE() macro. See
include/linux/module.h.)

st-cpufreq.o can only be built-in. But the code contains of few lines
that are only useful if the code can be modular. Was ARM_ST_CPUFREQ
perhaps meant to be tristate?

Thanks,


Paul Bolle
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help