Forráskód Böngészése

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: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 10 éve
szülő
commit
2a1ed07718
43 módosított fájl, 0 hozzáadás és 43 törlés
  1. 0 1
      drivers/hwmon/abituguru.c
  2. 0 1
      drivers/hwmon/abituguru3.c
  3. 0 1
      drivers/hwmon/abx500.c
  4. 0 1
      drivers/hwmon/applesmc.c
  5. 0 1
      drivers/hwmon/coretemp.c
  6. 0 1
      drivers/hwmon/da9052-hwmon.c
  7. 0 1
      drivers/hwmon/da9055-hwmon.c
  8. 0 1
      drivers/hwmon/dme1737.c
  9. 0 1
      drivers/hwmon/f71805f.c
  10. 0 1
      drivers/hwmon/f71882fg.c
  11. 0 1
      drivers/hwmon/i5k_amb.c
  12. 0 1
      drivers/hwmon/ibmpowernv.c
  13. 0 1
      drivers/hwmon/iio_hwmon.c
  14. 0 1
      drivers/hwmon/it87.c
  15. 0 1
      drivers/hwmon/jz4740-hwmon.c
  16. 0 1
      drivers/hwmon/lm78.c
  17. 0 1
      drivers/hwmon/max197.c
  18. 0 1
      drivers/hwmon/mc13783-adc.c
  19. 0 1
      drivers/hwmon/menf21bmc_hwmon.c
  20. 0 1
      drivers/hwmon/nct6683.c
  21. 0 1
      drivers/hwmon/nct6775.c
  22. 0 1
      drivers/hwmon/ntc_thermistor.c
  23. 0 1
      drivers/hwmon/pc87360.c
  24. 0 1
      drivers/hwmon/pc87427.c
  25. 0 1
      drivers/hwmon/s3c-hwmon.c
  26. 0 1
      drivers/hwmon/sch5627.c
  27. 0 1
      drivers/hwmon/sch5636.c
  28. 0 1
      drivers/hwmon/sht15.c
  29. 0 1
      drivers/hwmon/sis5595.c
  30. 0 1
      drivers/hwmon/smsc47b397.c
  31. 0 1
      drivers/hwmon/smsc47m1.c
  32. 0 1
      drivers/hwmon/twl4030-madc-hwmon.c
  33. 0 1
      drivers/hwmon/ultra45_env.c
  34. 0 1
      drivers/hwmon/vexpress.c
  35. 0 1
      drivers/hwmon/via-cputemp.c
  36. 0 1
      drivers/hwmon/via686a.c
  37. 0 1
      drivers/hwmon/vt1211.c
  38. 0 1
      drivers/hwmon/vt8231.c
  39. 0 1
      drivers/hwmon/w83627ehf.c
  40. 0 1
      drivers/hwmon/w83627hf.c
  41. 0 1
      drivers/hwmon/w83781d.c
  42. 0 1
      drivers/hwmon/wm831x-hwmon.c
  43. 0 1
      drivers/hwmon/wm8350-hwmon.c

+ 0 - 1
drivers/hwmon/abituguru.c

@@ -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,
 	},

+ 0 - 1
drivers/hwmon/abituguru3.c

@@ -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
 	},

+ 0 - 1
drivers/hwmon/abx500.c

@@ -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),
 	},

+ 0 - 1
drivers/hwmon/applesmc.c

@@ -676,7 +676,6 @@ static struct platform_driver applesmc_driver = {
 	.probe = applesmc_probe,
 	.driver	= {
 		.name = "applesmc",
-		.owner = THIS_MODULE,
 		.pm = &applesmc_pm_ops,
 	},
 };

+ 0 - 1
drivers/hwmon/coretemp.c

@@ -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,

+ 0 - 1
drivers/hwmon/da9052-hwmon.c

@@ -282,7 +282,6 @@ static struct platform_driver da9052_hwmon_driver = {
 	.probe = da9052_hwmon_probe,
 	.driver = {
 		.name = "da9052-hwmon",
-		.owner = THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/hwmon/da9055-hwmon.c

@@ -286,7 +286,6 @@ static struct platform_driver da9055_hwmon_driver = {
 	.probe = da9055_hwmon_probe,
 	.driver = {
 		.name = "da9055-hwmon",
-		.owner = THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/hwmon/dme1737.c

@@ -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,

+ 0 - 1
drivers/hwmon/f71805f.c

@@ -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,

+ 0 - 1
drivers/hwmon/f71882fg.c

@@ -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,

+ 0 - 1
drivers/hwmon/i5k_amb.c

@@ -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,

+ 0 - 1
drivers/hwmon/ibmpowernv.c

@@ -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,
 	},
 };

+ 0 - 1
drivers/hwmon/iio_hwmon.c

@@ -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,

+ 0 - 1
drivers/hwmon/it87.c

@@ -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,

+ 0 - 1
drivers/hwmon/jz4740-hwmon.c

@@ -172,7 +172,6 @@ static struct platform_driver jz4740_hwmon_driver = {
 	.remove = jz4740_hwmon_remove,
 	.driver = {
 		.name = "jz4740-hwmon",
-		.owner = THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/hwmon/lm78.c

@@ -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,

+ 0 - 1
drivers/hwmon/max197.c

@@ -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,

+ 0 - 1
drivers/hwmon/mc13783-adc.c

@@ -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,

+ 0 - 1
drivers/hwmon/menf21bmc_hwmon.c

@@ -218,7 +218,6 @@ static struct platform_driver menf21bmc_hwmon = {
 	.probe		= menf21bmc_hwmon_probe,
 	.driver		= {
 		.name		= DRV_NAME,
-		.owner		= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/hwmon/nct6683.c

@@ -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,
 	},

+ 0 - 1
drivers/hwmon/nct6775.c

@@ -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,
 	},

+ 0 - 1
drivers/hwmon/ntc_thermistor.c

@@ -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,

+ 0 - 1
drivers/hwmon/pc87360.c

@@ -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,

+ 0 - 1
drivers/hwmon/pc87427.c

@@ -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,

+ 0 - 1
drivers/hwmon/s3c-hwmon.c

@@ -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,

+ 0 - 1
drivers/hwmon/sch5627.c

@@ -591,7 +591,6 @@ error:
 
 static struct platform_driver sch5627_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= DRVNAME,
 	},
 	.probe		= sch5627_probe,

+ 0 - 1
drivers/hwmon/sch5636.c

@@ -521,7 +521,6 @@ error:
 
 static struct platform_driver sch5636_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= DRVNAME,
 	},
 	.probe		= sch5636_probe,

+ 0 - 1
drivers/hwmon/sht15.c

@@ -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,

+ 0 - 1
drivers/hwmon/sis5595.c

@@ -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,

+ 0 - 1
drivers/hwmon/smsc47b397.c

@@ -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,

+ 0 - 1
drivers/hwmon/smsc47m1.c

@@ -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),

+ 0 - 1
drivers/hwmon/twl4030-madc-hwmon.c

@@ -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,
 		   },
 };
 

+ 0 - 1
drivers/hwmon/ultra45_env.c

@@ -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,

+ 0 - 1
drivers/hwmon/vexpress.c

@@ -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,
 	},
 };

+ 0 - 1
drivers/hwmon/via-cputemp.c

@@ -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,

+ 0 - 1
drivers/hwmon/via686a.c

@@ -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,

+ 0 - 1
drivers/hwmon/vt1211.c

@@ -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,

+ 0 - 1
drivers/hwmon/vt8231.c

@@ -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,

+ 0 - 1
drivers/hwmon/w83627ehf.c

@@ -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,
 	},

+ 0 - 1
drivers/hwmon/w83627hf.c

@@ -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,
 	},

+ 0 - 1
drivers/hwmon/w83781d.c

@@ -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,

+ 0 - 1
drivers/hwmon/wm831x-hwmon.c

@@ -154,7 +154,6 @@ static struct platform_driver wm831x_hwmon_driver = {
 	.probe = wm831x_hwmon_probe,
 	.driver = {
 		.name = "wm831x-hwmon",
-		.owner = THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/hwmon/wm8350-hwmon.c

@@ -93,7 +93,6 @@ static struct platform_driver wm8350_hwmon_driver = {
 	.probe = wm8350_hwmon_probe,
 	.driver = {
 		.name = "wm8350-hwmon",
-		.owner = THIS_MODULE,
 	},
 };