Commit 2a1ed077 authored by Wolfram Sang's avatar Wolfram Sang

hwmon: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 53b72c17
...@@ -1547,7 +1547,6 @@ static SIMPLE_DEV_PM_OPS(abituguru_pm, abituguru_suspend, abituguru_resume); ...@@ -1547,7 +1547,6 @@ static SIMPLE_DEV_PM_OPS(abituguru_pm, abituguru_suspend, abituguru_resume);
static struct platform_driver abituguru_driver = { static struct platform_driver abituguru_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = ABIT_UGURU_NAME, .name = ABIT_UGURU_NAME,
.pm = ABIT_UGURU_PM, .pm = ABIT_UGURU_PM,
}, },
......
...@@ -1167,7 +1167,6 @@ static SIMPLE_DEV_PM_OPS(abituguru3_pm, abituguru3_suspend, abituguru3_resume); ...@@ -1167,7 +1167,6 @@ static SIMPLE_DEV_PM_OPS(abituguru3_pm, abituguru3_suspend, abituguru3_resume);
static struct platform_driver abituguru3_driver = { static struct platform_driver abituguru3_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = ABIT_UGURU3_NAME, .name = ABIT_UGURU3_NAME,
.pm = ABIT_UGURU3_PM .pm = ABIT_UGURU3_PM
}, },
......
...@@ -474,7 +474,6 @@ static const struct of_device_id abx500_temp_match[] = { ...@@ -474,7 +474,6 @@ static const struct of_device_id abx500_temp_match[] = {
static struct platform_driver abx500_temp_driver = { static struct platform_driver abx500_temp_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "abx500-temp", .name = "abx500-temp",
.of_match_table = of_match_ptr(abx500_temp_match), .of_match_table = of_match_ptr(abx500_temp_match),
}, },
......
...@@ -676,7 +676,6 @@ static struct platform_driver applesmc_driver = { ...@@ -676,7 +676,6 @@ static struct platform_driver applesmc_driver = {
.probe = applesmc_probe, .probe = applesmc_probe,
.driver = { .driver = {
.name = "applesmc", .name = "applesmc",
.owner = THIS_MODULE,
.pm = &applesmc_pm_ops, .pm = &applesmc_pm_ops,
}, },
}; };
......
...@@ -596,7 +596,6 @@ static int coretemp_remove(struct platform_device *pdev) ...@@ -596,7 +596,6 @@ static int coretemp_remove(struct platform_device *pdev)
static struct platform_driver coretemp_driver = { static struct platform_driver coretemp_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = coretemp_probe, .probe = coretemp_probe,
......
...@@ -282,7 +282,6 @@ static struct platform_driver da9052_hwmon_driver = { ...@@ -282,7 +282,6 @@ static struct platform_driver da9052_hwmon_driver = {
.probe = da9052_hwmon_probe, .probe = da9052_hwmon_probe,
.driver = { .driver = {
.name = "da9052-hwmon", .name = "da9052-hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -286,7 +286,6 @@ static struct platform_driver da9055_hwmon_driver = { ...@@ -286,7 +286,6 @@ static struct platform_driver da9055_hwmon_driver = {
.probe = da9055_hwmon_probe, .probe = da9055_hwmon_probe,
.driver = { .driver = {
.name = "da9055-hwmon", .name = "da9055-hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -2732,7 +2732,6 @@ static int dme1737_isa_remove(struct platform_device *pdev) ...@@ -2732,7 +2732,6 @@ static int dme1737_isa_remove(struct platform_device *pdev)
static struct platform_driver dme1737_isa_driver = { static struct platform_driver dme1737_isa_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "dme1737", .name = "dme1737",
}, },
.probe = dme1737_isa_probe, .probe = dme1737_isa_probe,
......
...@@ -1503,7 +1503,6 @@ static int f71805f_remove(struct platform_device *pdev) ...@@ -1503,7 +1503,6 @@ static int f71805f_remove(struct platform_device *pdev)
static struct platform_driver f71805f_driver = { static struct platform_driver f71805f_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = f71805f_probe, .probe = f71805f_probe,
......
...@@ -369,7 +369,6 @@ static int f71882fg_remove(struct platform_device *pdev); ...@@ -369,7 +369,6 @@ static int f71882fg_remove(struct platform_device *pdev);
static struct platform_driver f71882fg_driver = { static struct platform_driver f71882fg_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = f71882fg_probe, .probe = f71882fg_probe,
......
...@@ -581,7 +581,6 @@ static int i5k_amb_remove(struct platform_device *pdev) ...@@ -581,7 +581,6 @@ static int i5k_amb_remove(struct platform_device *pdev)
static struct platform_driver i5k_amb_driver = { static struct platform_driver i5k_amb_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = i5k_amb_probe, .probe = i5k_amb_probe,
......
...@@ -311,7 +311,6 @@ static int __init ibmpowernv_probe(struct platform_device *pdev) ...@@ -311,7 +311,6 @@ static int __init ibmpowernv_probe(struct platform_device *pdev)
static struct platform_driver ibmpowernv_driver = { static struct platform_driver ibmpowernv_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
}; };
......
...@@ -172,7 +172,6 @@ MODULE_DEVICE_TABLE(of, iio_hwmon_of_match); ...@@ -172,7 +172,6 @@ MODULE_DEVICE_TABLE(of, iio_hwmon_of_match);
static struct platform_driver __refdata iio_hwmon_driver = { static struct platform_driver __refdata iio_hwmon_driver = {
.driver = { .driver = {
.name = "iio_hwmon", .name = "iio_hwmon",
.owner = THIS_MODULE,
.of_match_table = iio_hwmon_of_match, .of_match_table = iio_hwmon_of_match,
}, },
.probe = iio_hwmon_probe, .probe = iio_hwmon_probe,
......
...@@ -498,7 +498,6 @@ static void it87_init_device(struct platform_device *pdev); ...@@ -498,7 +498,6 @@ static void it87_init_device(struct platform_device *pdev);
static struct platform_driver it87_driver = { static struct platform_driver it87_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = it87_probe, .probe = it87_probe,
......
...@@ -172,7 +172,6 @@ static struct platform_driver jz4740_hwmon_driver = { ...@@ -172,7 +172,6 @@ static struct platform_driver jz4740_hwmon_driver = {
.remove = jz4740_hwmon_remove, .remove = jz4740_hwmon_remove,
.driver = { .driver = {
.name = "jz4740-hwmon", .name = "jz4740-hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -836,7 +836,6 @@ static int lm78_isa_probe(struct platform_device *pdev) ...@@ -836,7 +836,6 @@ static int lm78_isa_probe(struct platform_device *pdev)
static struct platform_driver lm78_isa_driver = { static struct platform_driver lm78_isa_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "lm78", .name = "lm78",
}, },
.probe = lm78_isa_probe, .probe = lm78_isa_probe,
......
...@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(platform, max197_device_ids); ...@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(platform, max197_device_ids);
static struct platform_driver max197_driver = { static struct platform_driver max197_driver = {
.driver = { .driver = {
.name = "max197", .name = "max197",
.owner = THIS_MODULE,
}, },
.probe = max197_probe, .probe = max197_probe,
.remove = max197_remove, .remove = max197_remove,
......
...@@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable); ...@@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable);
static struct platform_driver mc13783_adc_driver = { static struct platform_driver mc13783_adc_driver = {
.remove = mc13783_adc_remove, .remove = mc13783_adc_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRIVER_NAME, .name = DRIVER_NAME,
}, },
.id_table = mc13783_adc_idtable, .id_table = mc13783_adc_idtable,
......
...@@ -218,7 +218,6 @@ static struct platform_driver menf21bmc_hwmon = { ...@@ -218,7 +218,6 @@ static struct platform_driver menf21bmc_hwmon = {
.probe = menf21bmc_hwmon_probe, .probe = menf21bmc_hwmon_probe,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1282,7 +1282,6 @@ static const struct dev_pm_ops nct6683_dev_pm_ops = { ...@@ -1282,7 +1282,6 @@ static const struct dev_pm_ops nct6683_dev_pm_ops = {
static struct platform_driver nct6683_driver = { static struct platform_driver nct6683_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
.pm = NCT6683_DEV_PM_OPS, .pm = NCT6683_DEV_PM_OPS,
}, },
......
...@@ -4039,7 +4039,6 @@ static const struct dev_pm_ops nct6775_dev_pm_ops = { ...@@ -4039,7 +4039,6 @@ static const struct dev_pm_ops nct6775_dev_pm_ops = {
static struct platform_driver nct6775_driver = { static struct platform_driver nct6775_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
.pm = NCT6775_DEV_PM_OPS, .pm = NCT6775_DEV_PM_OPS,
}, },
......
...@@ -609,7 +609,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev) ...@@ -609,7 +609,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev)
static struct platform_driver ntc_thermistor_driver = { static struct platform_driver ntc_thermistor_driver = {
.driver = { .driver = {
.name = "ntc-thermistor", .name = "ntc-thermistor",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ntc_match), .of_match_table = of_match_ptr(ntc_match),
}, },
.probe = ntc_thermistor_probe, .probe = ntc_thermistor_probe,
......
...@@ -244,7 +244,6 @@ static struct pc87360_data *pc87360_update_device(struct device *dev); ...@@ -244,7 +244,6 @@ static struct pc87360_data *pc87360_update_device(struct device *dev);
static struct platform_driver pc87360_driver = { static struct platform_driver pc87360_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "pc87360", .name = "pc87360",
}, },
.probe = pc87360_probe, .probe = pc87360_probe,
......
...@@ -1153,7 +1153,6 @@ static int pc87427_remove(struct platform_device *pdev) ...@@ -1153,7 +1153,6 @@ static int pc87427_remove(struct platform_device *pdev)
static struct platform_driver pc87427_driver = { static struct platform_driver pc87427_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = pc87427_probe, .probe = pc87427_probe,
......
...@@ -378,7 +378,6 @@ static int s3c_hwmon_remove(struct platform_device *dev) ...@@ -378,7 +378,6 @@ static int s3c_hwmon_remove(struct platform_device *dev)
static struct platform_driver s3c_hwmon_driver = { static struct platform_driver s3c_hwmon_driver = {
.driver = { .driver = {
.name = "s3c-hwmon", .name = "s3c-hwmon",
.owner = THIS_MODULE,
}, },
.probe = s3c_hwmon_probe, .probe = s3c_hwmon_probe,
.remove = s3c_hwmon_remove, .remove = s3c_hwmon_remove,
......
...@@ -591,7 +591,6 @@ error: ...@@ -591,7 +591,6 @@ error:
static struct platform_driver sch5627_driver = { static struct platform_driver sch5627_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = sch5627_probe, .probe = sch5627_probe,
......
...@@ -521,7 +521,6 @@ error: ...@@ -521,7 +521,6 @@ error:
static struct platform_driver sch5636_driver = { static struct platform_driver sch5636_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = sch5636_probe, .probe = sch5636_probe,
......
...@@ -1087,7 +1087,6 @@ MODULE_DEVICE_TABLE(platform, sht15_device_ids); ...@@ -1087,7 +1087,6 @@ MODULE_DEVICE_TABLE(platform, sht15_device_ids);
static struct platform_driver sht15_driver = { static struct platform_driver sht15_driver = {
.driver = { .driver = {
.name = "sht15", .name = "sht15",
.owner = THIS_MODULE,
}, },
.probe = sht15_probe, .probe = sht15_probe,
.remove = sht15_remove, .remove = sht15_remove,
......
...@@ -215,7 +215,6 @@ static void sis5595_init_device(struct sis5595_data *data); ...@@ -215,7 +215,6 @@ static void sis5595_init_device(struct sis5595_data *data);
static struct platform_driver sis5595_driver = { static struct platform_driver sis5595_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "sis5595", .name = "sis5595",
}, },
.probe = sis5595_probe, .probe = sis5595_probe,
......
...@@ -219,7 +219,6 @@ static int smsc47b397_probe(struct platform_device *pdev); ...@@ -219,7 +219,6 @@ static int smsc47b397_probe(struct platform_device *pdev);
static struct platform_driver smsc47b397_driver = { static struct platform_driver smsc47b397_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = smsc47b397_probe, .probe = smsc47b397_probe,
......
...@@ -849,7 +849,6 @@ static int __exit smsc47m1_remove(struct platform_device *pdev) ...@@ -849,7 +849,6 @@ static int __exit smsc47m1_remove(struct platform_device *pdev)
static struct platform_driver smsc47m1_driver = { static struct platform_driver smsc47m1_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.remove = __exit_p(smsc47m1_remove), .remove = __exit_p(smsc47m1_remove),
......
...@@ -107,7 +107,6 @@ static struct platform_driver twl4030_madc_hwmon_driver = { ...@@ -107,7 +107,6 @@ static struct platform_driver twl4030_madc_hwmon_driver = {
.probe = twl4030_madc_hwmon_probe, .probe = twl4030_madc_hwmon_probe,
.driver = { .driver = {
.name = "twl4030_madc_hwmon", .name = "twl4030_madc_hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -314,7 +314,6 @@ MODULE_DEVICE_TABLE(of, env_match); ...@@ -314,7 +314,6 @@ MODULE_DEVICE_TABLE(of, env_match);
static struct platform_driver env_driver = { static struct platform_driver env_driver = {
.driver = { .driver = {
.name = "ultra45_env", .name = "ultra45_env",
.owner = THIS_MODULE,
.of_match_table = env_match, .of_match_table = env_match,
}, },
.probe = env_probe, .probe = env_probe,
......
...@@ -247,7 +247,6 @@ static struct platform_driver vexpress_hwmon_driver = { ...@@ -247,7 +247,6 @@ static struct platform_driver vexpress_hwmon_driver = {
.probe = vexpress_hwmon_probe, .probe = vexpress_hwmon_probe,
.driver = { .driver = {
.name = DRVNAME, .name = DRVNAME,
.owner = THIS_MODULE,
.of_match_table = vexpress_hwmon_of_match, .of_match_table = vexpress_hwmon_of_match,
}, },
}; };
......
...@@ -205,7 +205,6 @@ static int via_cputemp_remove(struct platform_device *pdev) ...@@ -205,7 +205,6 @@ static int via_cputemp_remove(struct platform_device *pdev)
static struct platform_driver via_cputemp_driver = { static struct platform_driver via_cputemp_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = via_cputemp_probe, .probe = via_cputemp_probe,
......
...@@ -670,7 +670,6 @@ static const struct attribute_group via686a_group = { ...@@ -670,7 +670,6 @@ static const struct attribute_group via686a_group = {
static struct platform_driver via686a_driver = { static struct platform_driver via686a_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "via686a", .name = "via686a",
}, },
.probe = via686a_probe, .probe = via686a_probe,
......
...@@ -1233,7 +1233,6 @@ static int vt1211_remove(struct platform_device *pdev) ...@@ -1233,7 +1233,6 @@ static int vt1211_remove(struct platform_device *pdev)
static struct platform_driver vt1211_driver = { static struct platform_driver vt1211_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = vt1211_probe, .probe = vt1211_probe,
......
...@@ -759,7 +759,6 @@ static const struct attribute_group vt8231_group = { ...@@ -759,7 +759,6 @@ static const struct attribute_group vt8231_group = {
static struct platform_driver vt8231_driver = { static struct platform_driver vt8231_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "vt8231", .name = "vt8231",
}, },
.probe = vt8231_probe, .probe = vt8231_probe,
......
...@@ -2705,7 +2705,6 @@ static const struct dev_pm_ops w83627ehf_dev_pm_ops = { ...@@ -2705,7 +2705,6 @@ static const struct dev_pm_ops w83627ehf_dev_pm_ops = {
static struct platform_driver w83627ehf_driver = { static struct platform_driver w83627ehf_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
.pm = W83627EHF_DEV_PM_OPS, .pm = W83627EHF_DEV_PM_OPS,
}, },
......
...@@ -474,7 +474,6 @@ static const struct dev_pm_ops w83627hf_dev_pm_ops = { ...@@ -474,7 +474,6 @@ static const struct dev_pm_ops w83627hf_dev_pm_ops = {
static struct platform_driver w83627hf_driver = { static struct platform_driver w83627hf_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRVNAME, .name = DRVNAME,
.pm = W83627HF_DEV_PM_OPS, .pm = W83627HF_DEV_PM_OPS,
}, },
......
...@@ -1839,7 +1839,6 @@ w83781d_isa_remove(struct platform_device *pdev) ...@@ -1839,7 +1839,6 @@ w83781d_isa_remove(struct platform_device *pdev)
static struct platform_driver w83781d_isa_driver = { static struct platform_driver w83781d_isa_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "w83781d", .name = "w83781d",
}, },
.probe = w83781d_isa_probe, .probe = w83781d_isa_probe,
......
...@@ -154,7 +154,6 @@ static struct platform_driver wm831x_hwmon_driver = { ...@@ -154,7 +154,6 @@ static struct platform_driver wm831x_hwmon_driver = {
.probe = wm831x_hwmon_probe, .probe = wm831x_hwmon_probe,
.driver = { .driver = {
.name = "wm831x-hwmon", .name = "wm831x-hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -93,7 +93,6 @@ static struct platform_driver wm8350_hwmon_driver = { ...@@ -93,7 +93,6 @@ static struct platform_driver wm8350_hwmon_driver = {
.probe = wm8350_hwmon_probe, .probe = wm8350_hwmon_probe,
.driver = { .driver = {
.name = "wm8350-hwmon", .name = "wm8350-hwmon",
.owner = THIS_MODULE,
}, },
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment