cpufreq: Drop the owner field from struct cpufreq_driver
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 6 Aug 2013 17:23:12 +0000 (22:53 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 10 Aug 2013 01:24:47 +0000 (03:24 +0200)
We don't need to set .owner = THIS_MODULE any more in cpufreq drivers
as this field isn't used any more by the cpufreq core.

This patch removes it and updates all dependent drivers accordingly.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
37 files changed:
Documentation/cpu-freq/cpu-drivers.txt
drivers/cpufreq/acpi-cpufreq.c
drivers/cpufreq/at32ap-cpufreq.c
drivers/cpufreq/blackfin-cpufreq.c
drivers/cpufreq/cpufreq-nforce2.c
drivers/cpufreq/cris-artpec3-cpufreq.c
drivers/cpufreq/cris-etraxfs-cpufreq.c
drivers/cpufreq/e_powersaver.c
drivers/cpufreq/elanfreq.c
drivers/cpufreq/gx-suspmod.c
drivers/cpufreq/ia64-acpi-cpufreq.c
drivers/cpufreq/intel_pstate.c
drivers/cpufreq/kirkwood-cpufreq.c
drivers/cpufreq/longhaul.c
drivers/cpufreq/longrun.c
drivers/cpufreq/loongson2_cpufreq.c
drivers/cpufreq/maple-cpufreq.c
drivers/cpufreq/p4-clockmod.c
drivers/cpufreq/pasemi-cpufreq.c
drivers/cpufreq/pcc-cpufreq.c
drivers/cpufreq/pmac32-cpufreq.c
drivers/cpufreq/pmac64-cpufreq.c
drivers/cpufreq/powernow-k6.c
drivers/cpufreq/powernow-k7.c
drivers/cpufreq/powernow-k8.c
drivers/cpufreq/ppc-corenet-cpufreq.c
drivers/cpufreq/ppc_cbe_cpufreq.c
drivers/cpufreq/s3c2416-cpufreq.c
drivers/cpufreq/s3c64xx-cpufreq.c
drivers/cpufreq/sc520_freq.c
drivers/cpufreq/sh-cpufreq.c
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c
drivers/cpufreq/speedstep-centrino.c
drivers/cpufreq/speedstep-ich.c
drivers/cpufreq/speedstep-smi.c
include/linux/cpufreq.h

index 19fa98e07bf7fe79f403042d14858677f4474839..40282e6179135abc353bc8b04a86137820794468 100644 (file)
@@ -50,8 +50,6 @@ What shall this struct cpufreq_driver contain?
 
 cpufreq_driver.name -          The name of this driver.
 
-cpufreq_driver.owner -         THIS_MODULE;
-
 cpufreq_driver.init -          A pointer to the per-CPU initialization 
                                function.
 
index 44758ce9936d6cefd4e6a44a2e44ed6c8cfd5293..9b5d1b1a9c036dc66454ea1e05cad89953e9f95f 100644 (file)
@@ -936,7 +936,6 @@ static struct cpufreq_driver acpi_cpufreq_driver = {
        .exit           = acpi_cpufreq_cpu_exit,
        .resume         = acpi_cpufreq_resume,
        .name           = "acpi-cpufreq",
-       .owner          = THIS_MODULE,
        .attr           = acpi_cpufreq_attr,
 };
 
index 654488723cb5d00746b5e08ebb5f88e9beac8cd0..e0c38d9389979b2f1b9a503d36c8e12364ecc188 100644 (file)
@@ -108,7 +108,6 @@ static int __init at32_cpufreq_driver_init(struct cpufreq_policy *policy)
 
 static struct cpufreq_driver at32_driver = {
        .name           = "at32ap",
-       .owner          = THIS_MODULE,
        .init           = at32_cpufreq_driver_init,
        .verify         = at32_verify_speed,
        .target         = at32_set_target,
index 9cdbbd278a800da1587eae1fdb6314d23d0a9b9d..ef05978a723702de29da757eda20edec7d21c3d6 100644 (file)
@@ -225,7 +225,6 @@ static struct cpufreq_driver bfin_driver = {
        .get = bfin_getfreq_khz,
        .init = __bfin_cpu_init,
        .name = "bfin cpufreq",
-       .owner = THIS_MODULE,
        .attr = bfin_freq_attr,
 };
 
index af1542d414408f0e8df9d561522479501ada341b..b83d45f6857495083163e13336027ef4449b5da2 100644 (file)
@@ -379,7 +379,6 @@ static struct cpufreq_driver nforce2_driver = {
        .get = nforce2_get,
        .init = nforce2_cpu_init,
        .exit = nforce2_cpu_exit,
-       .owner = THIS_MODULE,
 };
 
 #ifdef MODULE
index ee142c4905756afe79e0c034acb2351f278594ac..cb8276dd19caee0a5e2756883148a2d70a7132f2 100644 (file)
@@ -111,7 +111,6 @@ static struct cpufreq_driver cris_freq_driver = {
        .init   = cris_freq_cpu_init,
        .exit   = cris_freq_cpu_exit,
        .name   = "cris_freq",
-       .owner  = THIS_MODULE,
        .attr   = cris_freq_attr,
 };
 
index 12952235d5dbc69bc6f83c0efb34bd7c8663f253..72328f77dc53bdef993173a1832d3159ac3fd03c 100644 (file)
@@ -108,7 +108,6 @@ static struct cpufreq_driver cris_freq_driver = {
        .init = cris_freq_cpu_init,
        .exit = cris_freq_cpu_exit,
        .name = "cris_freq",
-       .owner = THIS_MODULE,
        .attr = cris_freq_attr,
 };
 
index de974be6b7736fc839eb6d9d78103139eb660a5c..09f64cc830197fc1f80f605e41d73be6b0441435 100644 (file)
@@ -436,7 +436,6 @@ static struct cpufreq_driver eps_driver = {
        .exit           = eps_cpu_exit,
        .get            = eps_get,
        .name           = "e_powersaver",
-       .owner          = THIS_MODULE,
        .attr           = eps_attr,
 };
 
index 658d860344b0df71bd8dd59751f3e5281ca34637..823a400d98fd6bc5f8c627db8151df572ffc68b9 100644 (file)
@@ -274,7 +274,6 @@ static struct cpufreq_driver elanfreq_driver = {
        .init           = elanfreq_cpu_init,
        .exit           = elanfreq_cpu_exit,
        .name           = "elanfreq",
-       .owner          = THIS_MODULE,
        .attr           = elanfreq_attr,
 };
 
index 4f25fb63c097bdd0ec87048e055786171e53bc27..ef5fee7dc0b3342894241329968acec7ffaf3644 100644 (file)
@@ -446,7 +446,6 @@ static struct cpufreq_driver gx_suspmod_driver = {
        .target         = cpufreq_gx_target,
        .init           = cpufreq_gx_cpu_init,
        .name           = "gx-suspmod",
-       .owner          = THIS_MODULE,
 };
 
 static int __init cpufreq_gx_init(void)
index 08792dd4d62a96caa5820657d8c085e255f8c057..3e14f03171759bcdbd8a0501bc1ff38fee86d4c0 100644 (file)
@@ -409,7 +409,6 @@ static struct cpufreq_driver acpi_cpufreq_driver = {
        .init           = acpi_cpufreq_cpu_init,
        .exit           = acpi_cpufreq_cpu_exit,
        .name           = "acpi-cpufreq",
-       .owner          = THIS_MODULE,
        .attr           = acpi_cpufreq_attr,
 };
 
index 7cde885011ed3d1b15809f6d25c1a7f3ddc3adf1..6efd96c196b2efff80e41b1851e4b445350ccf5b 100644 (file)
@@ -665,7 +665,6 @@ static struct cpufreq_driver intel_pstate_driver = {
        .init           = intel_pstate_cpu_init,
        .exit           = intel_pstate_cpu_exit,
        .name           = "intel_pstate",
-       .owner          = THIS_MODULE,
 };
 
 static int __initdata no_load;
index c233ea617366fad2c7e4a3ed1b2bc0a7f500fda1..45e4d7fc261d36168190e8a6cadcd838629d98ee 100644 (file)
@@ -158,7 +158,6 @@ static struct cpufreq_driver kirkwood_cpufreq_driver = {
        .init   = kirkwood_cpufreq_cpu_init,
        .exit   = kirkwood_cpufreq_cpu_exit,
        .name   = "kirkwood-cpufreq",
-       .owner  = THIS_MODULE,
        .attr   = kirkwood_cpufreq_attr,
 };
 
index 8c49261df57dff642f63921d08a9d61ee41d95e3..4ada1cccb0523632e72c016e9a511dd38b08d33d 100644 (file)
@@ -948,7 +948,6 @@ static struct cpufreq_driver longhaul_driver = {
        .init   = longhaul_cpu_init,
        .exit   = longhaul_cpu_exit,
        .name   = "longhaul",
-       .owner  = THIS_MODULE,
        .attr   = longhaul_attr,
 };
 
index 0fe041d1f77f4a48f84542b11db0c4d07ee97b46..5aa031612d5393ff08d196f83b8701ac8c8f5e12 100644 (file)
@@ -286,7 +286,6 @@ static struct cpufreq_driver longrun_driver = {
        .get            = longrun_get,
        .init           = longrun_cpu_init,
        .name           = "longrun",
-       .owner          = THIS_MODULE,
 };
 
 static const struct x86_cpu_id longrun_ids[] = {
index bb838b98507747a02ade005d99074a4c2a1d95a8..e65de91b534b47fc3b0c4c79e54a78b9ffe0fad4 100644 (file)
@@ -157,7 +157,6 @@ static struct freq_attr *loongson2_table_attr[] = {
 };
 
 static struct cpufreq_driver loongson2_cpufreq_driver = {
-       .owner = THIS_MODULE,
        .name = "loongson2",
        .init = loongson2_cpufreq_cpu_init,
        .verify = loongson2_cpufreq_verify,
index cdd62915efafbc1708ee68d4d71d99c20d741b9e..41c601f4631e23ef72dcd4e758dd690a8438af0a 100644 (file)
@@ -190,7 +190,6 @@ static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 static struct cpufreq_driver maple_cpufreq_driver = {
        .name           = "maple",
-       .owner          = THIS_MODULE,
        .flags          = CPUFREQ_CONST_LOOPS,
        .init           = maple_cpufreq_cpu_init,
        .verify         = maple_cpufreq_verify,
index 9ee78170ff862a20cd7439e78d9ef0d71b542e77..2f0a2a65c37f67eeae9789ed12afa20627fd3503 100644 (file)
@@ -279,7 +279,6 @@ static struct cpufreq_driver p4clockmod_driver = {
        .exit           = cpufreq_p4_cpu_exit,
        .get            = cpufreq_p4_get,
        .name           = "p4-clockmod",
-       .owner          = THIS_MODULE,
        .attr           = p4clockmod_attr,
 };
 
index b704da404067061a4acd831e78b63572b54afc8c..534e43a60d1f9a80b2a952abe254fb01e06c0f12 100644 (file)
@@ -297,7 +297,6 @@ static int pas_cpufreq_target(struct cpufreq_policy *policy,
 
 static struct cpufreq_driver pas_cpufreq_driver = {
        .name           = "pas-cpufreq",
-       .owner          = THIS_MODULE,
        .flags          = CPUFREQ_CONST_LOOPS,
        .init           = pas_cpufreq_cpu_init,
        .exit           = pas_cpufreq_cpu_exit,
index 1581fcc4cf4a9f3cf8de7b782abe932328584ef0..d81c4e5ea0ada8c49afac790f1107bc5ce8f11e6 100644 (file)
@@ -587,7 +587,6 @@ static struct cpufreq_driver pcc_cpufreq_driver = {
        .init = pcc_cpufreq_cpu_init,
        .exit = pcc_cpufreq_cpu_exit,
        .name = "pcc-cpufreq",
-       .owner = THIS_MODULE,
 };
 
 static int __init pcc_cpufreq_init(void)
index 3104fad824801d1e9b03480a9757317f3a602fba..38cdc63c38da1a26572f8d7cbf5555e482205e73 100644 (file)
@@ -477,7 +477,6 @@ static struct cpufreq_driver pmac_cpufreq_driver = {
        .flags          = CPUFREQ_PM_NO_WARN,
        .attr           = pmac_cpu_freqs_attr,
        .name           = "powermac",
-       .owner          = THIS_MODULE,
 };
 
 
index 4d7799b7af8666bcc8108b9c8c654005867a054c..b6850d97f0d5a7ac1a0e81e4e7f4a5e2651613bc 100644 (file)
@@ -371,7 +371,6 @@ static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 static struct cpufreq_driver g5_cpufreq_driver = {
        .name           = "powermac",
-       .owner          = THIS_MODULE,
        .flags          = CPUFREQ_CONST_LOOPS,
        .init           = g5_cpufreq_cpu_init,
        .verify         = g5_cpufreq_verify,
index ea8e10382ec56b46c6a378d0bf84801a1a221108..85f1c8c25ddc5d20a361e219d023548b356b835b 100644 (file)
@@ -207,7 +207,6 @@ static struct cpufreq_driver powernow_k6_driver = {
        .exit           = powernow_k6_cpu_exit,
        .get            = powernow_k6_get,
        .name           = "powernow-k6",
-       .owner          = THIS_MODULE,
        .attr           = powernow_k6_attr,
 };
 
index 4687d40d02195d46f277aee0b59cbcd9dbede061..14ce480be8ab2503515cb1d61b8f30b5892d85d2 100644 (file)
@@ -716,7 +716,6 @@ static struct cpufreq_driver powernow_driver = {
        .init           = powernow_cpu_init,
        .exit           = powernow_cpu_exit,
        .name           = "powernow-k7",
-       .owner          = THIS_MODULE,
        .attr           = powernow_table_attr,
 };
 
index 3f3c6cae91d08b5d3b8fc9092bb9125982adce53..2344a9ed17f3c38017701e075c945df8ae0f4bdf 100644 (file)
@@ -1240,7 +1240,6 @@ static struct cpufreq_driver cpufreq_amd64_driver = {
        .exit           = powernowk8_cpu_exit,
        .get            = powernowk8_get,
        .name           = "powernow-k8",
-       .owner          = THIS_MODULE,
        .attr           = powernow_k8_attr,
 };
 
index 3cae4529f959259f6554283c5d843ef8744046a4..60e81d524ea8231666210ecca2c97407c0a5a279 100644 (file)
@@ -300,7 +300,6 @@ static struct freq_attr *corenet_cpufreq_attr[] = {
 
 static struct cpufreq_driver ppc_corenet_cpufreq_driver = {
        .name           = "ppc_cpufreq",
-       .owner          = THIS_MODULE,
        .flags          = CPUFREQ_CONST_LOOPS,
        .init           = corenet_cpufreq_cpu_init,
        .exit           = __exit_p(corenet_cpufreq_cpu_exit),
index 5936f8d6f2cc3e855ce52a814705ee9d1e35b10b..2e448f0bbdc583465672e7ec40804f1d01467224 100644 (file)
@@ -181,7 +181,6 @@ static struct cpufreq_driver cbe_cpufreq_driver = {
        .init           = cbe_cpufreq_cpu_init,
        .exit           = cbe_cpufreq_cpu_exit,
        .name           = "cbe-cpufreq",
-       .owner          = THIS_MODULE,
        .flags          = CPUFREQ_CONST_LOOPS,
 };
 
index ce5b9fca9c1871eed562add6fb35f3979ab7fd8a..22dcb81ef9d0e9069b8fc4d49249713d59d41dd9 100644 (file)
@@ -524,7 +524,6 @@ static struct freq_attr *s3c2416_cpufreq_attr[] = {
 };
 
 static struct cpufreq_driver s3c2416_cpufreq_driver = {
-       .owner          = THIS_MODULE,
        .flags          = 0,
        .verify         = s3c2416_cpufreq_verify_speed,
        .target         = s3c2416_cpufreq_set_target,
index 13bb4bae64ee11505fb8a072d041ec9a8268bf84..8a72b0c555f846da21d25d02d9f94d427a7796b5 100644 (file)
@@ -263,7 +263,6 @@ static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
 }
 
 static struct cpufreq_driver s3c64xx_cpufreq_driver = {
-       .owner          = THIS_MODULE,
        .flags          = 0,
        .verify         = s3c64xx_cpufreq_verify_speed,
        .target         = s3c64xx_cpufreq_set_target,
index 77a210975fc4b66ce737703f6904483d45368776..d6f6c6f4efa76ac6f82a97ddeff3292a06cfd18c 100644 (file)
@@ -147,7 +147,6 @@ static struct cpufreq_driver sc520_freq_driver = {
        .init   = sc520_freq_cpu_init,
        .exit   = sc520_freq_cpu_exit,
        .name   = "sc520_freq",
-       .owner  = THIS_MODULE,
        .attr   = sc520_freq_attr,
 };
 
index 73adb64651e86a8123e7b8bb41080a2e138eaefe..ffc6d24b0cfbed764db6b6c8e2015330e6fb9fbd 100644 (file)
@@ -160,7 +160,6 @@ static struct freq_attr *sh_freq_attr[] = {
 };
 
 static struct cpufreq_driver sh_cpufreq_driver = {
-       .owner          = THIS_MODULE,
        .name           = "sh",
        .get            = sh_cpufreq_get,
        .target         = sh_cpufreq_target,
index 7c43a725e5da573641c94f33b37e35dfef83230f..cf5bc2ca16fa11f4155d757c6d5219b6691a6b81 100644 (file)
@@ -365,7 +365,6 @@ static int __init us2e_freq_init(void)
                driver->target = us2e_freq_target;
                driver->get = us2e_freq_get;
                driver->exit = us2e_freq_cpu_exit;
-               driver->owner = THIS_MODULE,
                strcpy(driver->name, "UltraSPARC-IIe");
 
                cpufreq_us2e_driver = driver;
index 7f500c140bc3a81dff5c9a923e8904f3ae3c5a66..ac76b489979d48cac1278525ab861f46b69f8c86 100644 (file)
@@ -226,7 +226,6 @@ static int __init us3_freq_init(void)
                driver->target = us3_freq_target;
                driver->get = us3_freq_get;
                driver->exit = us3_freq_cpu_exit;
-               driver->owner = THIS_MODULE,
                strcpy(driver->name, "UltraSPARC-III");
 
                cpufreq_us3_driver = driver;
index 0915e712fbdcc3a6393c1974c12394e060cc3c1f..f897d510584285bea376474ca6a3198eeef7d74f 100644 (file)
@@ -575,7 +575,6 @@ static struct cpufreq_driver centrino_driver = {
        .target         = centrino_target,
        .get            = get_cur_freq,
        .attr           = centrino_attr,
-       .owner          = THIS_MODULE,
 };
 
 /*
index e2e5aa97145275a0b860ba119d736cc444a3fd2f..5355abb69afc972d88c9f509924d3e779fa0cdac 100644 (file)
@@ -378,7 +378,6 @@ static struct cpufreq_driver speedstep_driver = {
        .init   = speedstep_cpu_init,
        .exit   = speedstep_cpu_exit,
        .get    = speedstep_get,
-       .owner  = THIS_MODULE,
        .attr   = speedstep_attr,
 };
 
index f5a6b70ee6c0f1965a2794ace8d66c2c7e1aec38..abfba4f731ebdc4212696732a765b56083bc8252 100644 (file)
@@ -375,7 +375,6 @@ static struct cpufreq_driver speedstep_driver = {
        .exit           = speedstep_cpu_exit,
        .get            = speedstep_get,
        .resume         = speedstep_resume,
-       .owner          = THIS_MODULE,
        .attr           = speedstep_attr,
 };
 
index 431a05d4b4c9e5cb73a712b056d0adbcb04b2add..d568f3975eeb66125a28aa8a31ccbb712de56807 100644 (file)
@@ -179,7 +179,6 @@ __ATTR(_name, 0644, show_##_name, store_##_name)
 
 
 struct cpufreq_driver {
-       struct module           *owner;
        char                    name[CPUFREQ_NAME_LEN];
        u8                      flags;
        /*