]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hwmon: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:36 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:36 +0000 (16:20 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
43 files changed:
drivers/hwmon/abituguru.c
drivers/hwmon/abituguru3.c
drivers/hwmon/abx500.c
drivers/hwmon/applesmc.c
drivers/hwmon/coretemp.c
drivers/hwmon/da9052-hwmon.c
drivers/hwmon/da9055-hwmon.c
drivers/hwmon/dme1737.c
drivers/hwmon/f71805f.c
drivers/hwmon/f71882fg.c
drivers/hwmon/i5k_amb.c
drivers/hwmon/ibmpowernv.c
drivers/hwmon/iio_hwmon.c
drivers/hwmon/it87.c
drivers/hwmon/jz4740-hwmon.c
drivers/hwmon/lm78.c
drivers/hwmon/max197.c
drivers/hwmon/mc13783-adc.c
drivers/hwmon/menf21bmc_hwmon.c
drivers/hwmon/nct6683.c
drivers/hwmon/nct6775.c
drivers/hwmon/ntc_thermistor.c
drivers/hwmon/pc87360.c
drivers/hwmon/pc87427.c
drivers/hwmon/s3c-hwmon.c
drivers/hwmon/sch5627.c
drivers/hwmon/sch5636.c
drivers/hwmon/sht15.c
drivers/hwmon/sis5595.c
drivers/hwmon/smsc47b397.c
drivers/hwmon/smsc47m1.c
drivers/hwmon/twl4030-madc-hwmon.c
drivers/hwmon/ultra45_env.c
drivers/hwmon/vexpress.c
drivers/hwmon/via-cputemp.c
drivers/hwmon/via686a.c
drivers/hwmon/vt1211.c
drivers/hwmon/vt8231.c
drivers/hwmon/w83627ehf.c
drivers/hwmon/w83627hf.c
drivers/hwmon/w83781d.c
drivers/hwmon/wm831x-hwmon.c
drivers/hwmon/wm8350-hwmon.c

index 9c8a6bab822866ccab860a04fd276979bd69a115..7a09c1615aa90bd0a89758d81c91e3700913d3b8 100644 (file)
@@ -1547,7 +1547,6 @@ static SIMPLE_DEV_PM_OPS(abituguru_pm, abituguru_suspend, abituguru_resume);
 
 static struct platform_driver abituguru_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = ABIT_UGURU_NAME,
                .pm     = ABIT_UGURU_PM,
        },
index 4ae74aa8cdc1cf519ad83396cadcfc1a6fe4ca7b..3d2a4ae92d1e00a5e24a4619ebf4bca0462acb57 100644 (file)
@@ -1167,7 +1167,6 @@ static SIMPLE_DEV_PM_OPS(abituguru3_pm, abituguru3_suspend, abituguru3_resume);
 
 static struct platform_driver abituguru3_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = ABIT_UGURU3_NAME,
                .pm     = ABIT_UGURU3_PM
        },
index 769fe20ec9389b14e019ea685c48092b7455c2b8..13875968c844f03e00791b2d1340e62a547a9905 100644 (file)
@@ -474,7 +474,6 @@ static const struct of_device_id abx500_temp_match[] = {
 
 static struct platform_driver abx500_temp_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "abx500-temp",
                .of_match_table = of_match_ptr(abx500_temp_match),
        },
index 3288f13d2d871679b5eac9d6dd019675ede3c0d5..0af63da6b603d05afb5feb23dcf02270905e3470 100644 (file)
@@ -676,7 +676,6 @@ static struct platform_driver applesmc_driver = {
        .probe = applesmc_probe,
        .driver = {
                .name = "applesmc",
-               .owner = THIS_MODULE,
                .pm = &applesmc_pm_ops,
        },
 };
index d76f0b70c6e09a0dd4bf52d77df7aa85651377c9..5b7fec824f10a0eafc8109d7e9632789d6017e69 100644 (file)
@@ -596,7 +596,6 @@ static int coretemp_remove(struct platform_device *pdev)
 
 static struct platform_driver coretemp_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRVNAME,
        },
        .probe = coretemp_probe,
index 692b3f34d88c92fcee79231fc013093f169ff7ce..c9832bfacfe592d76d3c439deb703f91cebc62af 100644 (file)
@@ -282,7 +282,6 @@ static struct platform_driver da9052_hwmon_driver = {
        .probe = da9052_hwmon_probe,
        .driver = {
                .name = "da9052-hwmon",
-               .owner = THIS_MODULE,
        },
 };
 
index 9916a3fb4bb9d4eb8221db0ea264eae184dcb42b..f6e159cabe233e4af3fd5f19b7fd816fff1ebc43 100644 (file)
@@ -286,7 +286,6 @@ static struct platform_driver da9055_hwmon_driver = {
        .probe = da9055_hwmon_probe,
        .driver = {
                .name = "da9055-hwmon",
-               .owner = THIS_MODULE,
        },
 };
 
index bea0a344fab57b4f39b855d2997256b5d1e01b93..8763c4a8280ce753282f9e147f910aa975841efc 100644 (file)
@@ -2732,7 +2732,6 @@ static int dme1737_isa_remove(struct platform_device *pdev)
 
 static struct platform_driver dme1737_isa_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "dme1737",
        },
        .probe = dme1737_isa_probe,
index 9e57b77ecd34ef3367ed64b4105c5ce65e3c724f..facd05cda26da38dedd491d787dd7aff3fc02281 100644 (file)
@@ -1503,7 +1503,6 @@ static int f71805f_remove(struct platform_device *pdev)
 
 static struct platform_driver f71805f_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = f71805f_probe,
index 03d8592810bf04d4ebfe66cd86ea7e1b025185ac..2e5c6f46e4422b818ec8d91a33af971213a23074 100644 (file)
@@ -369,7 +369,6 @@ static int f71882fg_remove(struct platform_device *pdev);
 
 static struct platform_driver f71882fg_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = f71882fg_probe,
index 6c0080a3b90280f27ce3ab41687ee8fde0a0608f..6b3d1972cef74d1f55af1846d6a6c91ed26acc61 100644 (file)
@@ -581,7 +581,6 @@ static int i5k_amb_remove(struct platform_device *pdev)
 
 static struct platform_driver i5k_amb_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRVNAME,
        },
        .probe = i5k_amb_probe,
index d2bf2c97ae7094c03ff836f6debf2de8ca66677c..58ea44ec6c77fa3a5f0200808c9b3eb19d84b8a2 100644 (file)
@@ -311,7 +311,6 @@ static int __init ibmpowernv_probe(struct platform_device *pdev)
 
 static struct platform_driver ibmpowernv_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRVNAME,
        },
 };
index 14c82daab01975851da8e1255cf7b3430df5383c..214a51c55ad2790f85230bb719c8d307b3f59e6b 100644 (file)
@@ -172,7 +172,6 @@ MODULE_DEVICE_TABLE(of, iio_hwmon_of_match);
 static struct platform_driver __refdata iio_hwmon_driver = {
        .driver = {
                .name = "iio_hwmon",
-               .owner = THIS_MODULE,
                .of_match_table = iio_hwmon_of_match,
        },
        .probe = iio_hwmon_probe,
index a327fd3402a7dd4c6c5d028b45291c8839492172..409116c52cc57f650c8939fc6c7b7c50d3a1daea 100644 (file)
@@ -498,7 +498,6 @@ static void it87_init_device(struct platform_device *pdev);
 
 static struct platform_driver it87_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe  = it87_probe,
index 7488e36809c87605e52beec263357e05eca1c4a5..df9b3447f2a8dbee2da136e3b01d86157389d486 100644 (file)
@@ -172,7 +172,6 @@ static struct platform_driver jz4740_hwmon_driver = {
        .remove = jz4740_hwmon_remove,
        .driver = {
                .name = "jz4740-hwmon",
-               .owner = THIS_MODULE,
        },
 };
 
index 759661c7d480e575f653a460ce98c1a721c96727..539efe4ad991930437efd79caa004ebc5dabe360 100644 (file)
@@ -836,7 +836,6 @@ static int lm78_isa_probe(struct platform_device *pdev)
 
 static struct platform_driver lm78_isa_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "lm78",
        },
        .probe          = lm78_isa_probe,
index 82128ad79a911c893e784b8a5623f1e04c4afb5a..cb0dcfda958c1a905c1fc9954f1a637a81a40467 100644 (file)
@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(platform, max197_device_ids);
 static struct platform_driver max197_driver = {
        .driver = {
                .name = "max197",
-               .owner = THIS_MODULE,
        },
        .probe = max197_probe,
        .remove = max197_remove,
index ae00e60d856c63c4a2a82a4cd6f5a4e994c31e64..0c02f40eb0c1baf28768bedbc57b0106a5bc0e39 100644 (file)
@@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable);
 static struct platform_driver mc13783_adc_driver = {
        .remove         = mc13783_adc_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = DRIVER_NAME,
        },
        .id_table       = mc13783_adc_idtable,
index c92229d321c92c24c5686fd2a4beefd5d4baf6cf..722d08198b536ed30b0830b72e8f03e5c3d908a4 100644 (file)
@@ -218,7 +218,6 @@ static struct platform_driver menf21bmc_hwmon = {
        .probe          = menf21bmc_hwmon_probe,
        .driver         = {
                .name           = DRV_NAME,
-               .owner          = THIS_MODULE,
        },
 };
 
index 7710f4694ba15408366c4aebf37035b63acee045..f3830db02d4637675cebbe7b6b5e185492571a1e 100644 (file)
@@ -1282,7 +1282,6 @@ static const struct dev_pm_ops nct6683_dev_pm_ops = {
 
 static struct platform_driver nct6683_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
                .pm     = NCT6683_DEV_PM_OPS,
        },
index 504cbddbdd900336703506e55d0455cd6afc307d..7c0ea7252ef4102476aa51ca25d5fe42778af436 100644 (file)
@@ -4039,7 +4039,6 @@ static const struct dev_pm_ops nct6775_dev_pm_ops = {
 
 static struct platform_driver nct6775_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
                .pm     = NCT6775_DEV_PM_OPS,
        },
index 4ff89b2482e48ae12a4f48d2dd269613e1f2c58b..fd9a945fe8dbc37702bcc3833ccfb3fa39144733 100644 (file)
@@ -609,7 +609,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev)
 static struct platform_driver ntc_thermistor_driver = {
        .driver = {
                .name = "ntc-thermistor",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(ntc_match),
        },
        .probe = ntc_thermistor_probe,
index 145f674c1d8722afecf3e125245eafd3b96c6e34..d50fbf93a7370784902266b2e3185a02f3fea872 100644 (file)
@@ -244,7 +244,6 @@ static struct pc87360_data *pc87360_update_device(struct device *dev);
 
 static struct platform_driver pc87360_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "pc87360",
        },
        .probe          = pc87360_probe,
index 9e4684e747eace17b2c6d00a84d5da33553ffd93..cb9fdd37bd0d9c5111a4481255022e4ec26e5d4c 100644 (file)
@@ -1153,7 +1153,6 @@ static int pc87427_remove(struct platform_device *pdev)
 
 static struct platform_driver pc87427_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = pc87427_probe,
index 0674c13bbd4bffe73f626cdd6881a85c3d70445e..0c4710d35d16f7f53fb3766b1f3e5e534c64a235 100644 (file)
@@ -378,7 +378,6 @@ static int s3c_hwmon_remove(struct platform_device *dev)
 static struct platform_driver s3c_hwmon_driver = {
        .driver = {
                .name           = "s3c-hwmon",
-               .owner          = THIS_MODULE,
        },
        .probe          = s3c_hwmon_probe,
        .remove         = s3c_hwmon_remove,
index 0cc99fd83e8ea8f7ceb56884cc080fb729222512..19f85c0da2709fa2ebedad3d901ec799bce77129 100644 (file)
@@ -591,7 +591,6 @@ error:
 
 static struct platform_driver sch5627_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = sch5627_probe,
index 547b5c952eff62911505372cfd7b79f30421ed91..131a2815dbdabebd118f01860d266184c7a98128 100644 (file)
@@ -521,7 +521,6 @@ error:
 
 static struct platform_driver sch5636_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = sch5636_probe,
index 97cd45a8432c03f7a87bceaac5bbe5c8e038683e..d4f0935daaa11edfb8e56c5d58edc2f32eff570a 100644 (file)
@@ -1087,7 +1087,6 @@ MODULE_DEVICE_TABLE(platform, sht15_device_ids);
 static struct platform_driver sht15_driver = {
        .driver = {
                .name = "sht15",
-               .owner = THIS_MODULE,
        },
        .probe = sht15_probe,
        .remove = sht15_remove,
index bf1d7893d51c47b089de29a391e01a14aad6a2b3..45a028fb88517619c19b1f9b5fe6350f3f2b93ca 100644 (file)
@@ -215,7 +215,6 @@ static void sis5595_init_device(struct sis5595_data *data);
 
 static struct platform_driver sis5595_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "sis5595",
        },
        .probe          = sis5595_probe,
index 221f0931bf1c26af626a6720085b5a0460a6540f..6bd2007565603efde3b012865fd7091fff5478e9 100644 (file)
@@ -219,7 +219,6 @@ static int smsc47b397_probe(struct platform_device *pdev);
 
 static struct platform_driver smsc47b397_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = smsc47b397_probe,
index d7485659acc50291c195780caf3ff3bdd68c6981..5d323186d2c10be446db19325b410e9aa384cfd3 100644 (file)
@@ -849,7 +849,6 @@ static int __exit smsc47m1_remove(struct platform_device *pdev)
 
 static struct platform_driver smsc47m1_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .remove         = __exit_p(smsc47m1_remove),
index 9a0e2b8e8b94f0a244fba808609e6c756184934e..b5caf7fdb487abc9f2e18250698b4265ae568beb 100644 (file)
@@ -107,7 +107,6 @@ static struct platform_driver twl4030_madc_hwmon_driver = {
        .probe = twl4030_madc_hwmon_probe,
        .driver = {
                   .name = "twl4030_madc_hwmon",
-                  .owner = THIS_MODULE,
                   },
 };
 
index 7d4658636064d73c8fdf2efd32196f3e67432ace..f2816c7c918f85021045ce194965bbc77f6c9199 100644 (file)
@@ -314,7 +314,6 @@ MODULE_DEVICE_TABLE(of, env_match);
 static struct platform_driver env_driver = {
        .driver = {
                .name = "ultra45_env",
-               .owner = THIS_MODULE,
                .of_match_table = env_match,
        },
        .probe          = env_probe,
index c53619086f33ad89583d4fdb16bb805620ee4788..cf1848b8fb321a0e4f867352730956543088feb0 100644 (file)
@@ -247,7 +247,6 @@ static struct platform_driver vexpress_hwmon_driver = {
        .probe = vexpress_hwmon_probe,
        .driver = {
                .name = DRVNAME,
-               .owner = THIS_MODULE,
                .of_match_table = vexpress_hwmon_of_match,
        },
 };
index 8df43c51de2c2d14434533cff15bc371f3d3a245..ac91c07e3f906869858a4a359d157ebf89aa7b36 100644 (file)
@@ -205,7 +205,6 @@ static int via_cputemp_remove(struct platform_device *pdev)
 
 static struct platform_driver via_cputemp_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRVNAME,
        },
        .probe = via_cputemp_probe,
index babd732b4e184303d071149e98ae4651b71403e4..40dd93c8f9f457483ca8be2b0c2388943315c260 100644 (file)
@@ -670,7 +670,6 @@ static const struct attribute_group via686a_group = {
 
 static struct platform_driver via686a_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "via686a",
        },
        .probe          = via686a_probe,
index 3ea57c3504e24cf005c200bb5c093e1a80cef80b..3a6bfa51cb94f69cb8323ee69f32c88c62360575 100644 (file)
@@ -1233,7 +1233,6 @@ static int vt1211_remove(struct platform_device *pdev)
 
 static struct platform_driver vt1211_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name  = DRVNAME,
        },
        .probe  = vt1211_probe,
index b3babe3326fb2d41b68ce3712f8dd00871c33508..cb69a8c2ed5b84ba77d0053355ab2a649837e5f7 100644 (file)
@@ -759,7 +759,6 @@ static const struct attribute_group vt8231_group = {
 
 static struct platform_driver vt8231_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "vt8231",
        },
        .probe  = vt8231_probe,
index f0ab61db7a0d4f536c95ef0196674afc97cc70ac..b10353b31806be160dffac0d65be632c1f840eb9 100644 (file)
@@ -2705,7 +2705,6 @@ static const struct dev_pm_ops w83627ehf_dev_pm_ops = {
 
 static struct platform_driver w83627ehf_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
                .pm     = W83627EHF_DEV_PM_OPS,
        },
index 2f55973a8c4c37989750905d1fd2b209b0bbd902..721295b9a05176704b156e7dd799ad17da5edd86 100644 (file)
@@ -474,7 +474,6 @@ static const struct dev_pm_ops w83627hf_dev_pm_ops = {
 
 static struct platform_driver w83627hf_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
                .pm     = W83627HF_DEV_PM_OPS,
        },
index 84911616d8c03e872879be61b56a01115cd05713..54848fdd181e2212c302355e99f0920464c98c29 100644 (file)
@@ -1839,7 +1839,6 @@ w83781d_isa_remove(struct platform_device *pdev)
 
 static struct platform_driver w83781d_isa_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "w83781d",
        },
        .probe = w83781d_isa_probe,
index 3e6a3195cd110d2efe65ed9d93e6fb44e967e64d..a16cce72e4e27f962a4d43c4fb51c54dc01e77a4 100644 (file)
@@ -154,7 +154,6 @@ static struct platform_driver wm831x_hwmon_driver = {
        .probe = wm831x_hwmon_probe,
        .driver = {
                .name = "wm831x-hwmon",
-               .owner = THIS_MODULE,
        },
 };
 
index 90e3d918e597fb54bb271ddb9eee3183cec99924..31af438ffa8866f9f7c91597db44f0b70b727637 100644 (file)
@@ -93,7 +93,6 @@ static struct platform_driver wm8350_hwmon_driver = {
        .probe = wm8350_hwmon_probe,
        .driver = {
                .name = "wm8350-hwmon",
-               .owner = THIS_MODULE,
        },
 };