diff mbox

[01/15] cpufreq: arm_big_little: initialize .owner field with THIS_MODULE

Message ID 6afa40bd71534c32dcc660371239138742f23c41.1375279948.git.viresh.kumar@linaro.org
State New
Headers show

Commit Message

Viresh Kumar July 31, 2013, 2:19 p.m. UTC
CPUFreq core does following at multiple places:

This is done to make sure module doesn't get unloaded if it is currently in use.
This will work only if the .owner field of cpufreq driver is initialized with a
valid pointer.

This field wasn't initialized for this driver, lets initialize it with

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
 drivers/cpufreq/arm_big_little.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox


diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
index 3549f07..ba4d3b9 100644
--- a/drivers/cpufreq/arm_big_little.c
+++ b/drivers/cpufreq/arm_big_little.c
@@ -221,6 +221,7 @@  static struct cpufreq_driver bL_cpufreq_driver = {
 	.init			= bL_cpufreq_init,
 	.exit			= bL_cpufreq_exit,
 	.have_governor_per_policy = true,
+	.owner			= THIS_MODULE,
 	.attr			= bL_cpufreq_attr,