iio: remove .owner field for driver using module_platform_driver
This patch removes the .owner field for drivers which use the platform_driver_register api because this is overriden in _platform_driver_register. Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
b4b491c083
commit
81816affea
|
@ -419,7 +419,6 @@ static struct platform_driver hid_accel_3d_platform_driver = {
|
|||
.id_table = hid_accel_3d_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_accel_3d_probe,
|
||||
.remove = hid_accel_3d_remove,
|
||||
|
|
|
@ -723,7 +723,6 @@ static struct platform_driver exynos_adc_driver = {
|
|||
.remove = exynos_adc_remove,
|
||||
.driver = {
|
||||
.name = "exynos-adc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = exynos_adc_match,
|
||||
.pm = &exynos_adc_pm_ops,
|
||||
},
|
||||
|
|
|
@ -244,7 +244,6 @@ static struct platform_driver lp8788_adc_driver = {
|
|||
.remove = lp8788_adc_remove,
|
||||
.driver = {
|
||||
.name = LP8788_DEV_ADC,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(lp8788_adc_driver);
|
||||
|
|
|
@ -545,7 +545,6 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids);
|
|||
static struct platform_driver tiadc_driver = {
|
||||
.driver = {
|
||||
.name = "TI-am335x-adc",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = TIADC_PM_OPS,
|
||||
.of_match_table = ti_adc_dt_ids,
|
||||
},
|
||||
|
|
|
@ -883,7 +883,6 @@ static struct platform_driver twl4030_madc_driver = {
|
|||
.remove = twl4030_madc_remove,
|
||||
.driver = {
|
||||
.name = "twl4030_madc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(twl_madc_of_match),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -994,7 +994,6 @@ static struct platform_driver twl6030_gpadc_driver = {
|
|||
.remove = twl6030_gpadc_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &twl6030_gpadc_pm_ops,
|
||||
.of_match_table = of_twl6030_match_tbl,
|
||||
},
|
||||
|
|
|
@ -698,7 +698,6 @@ static struct platform_driver vf610_adc_driver = {
|
|||
.remove = vf610_adc_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = vf610_adc_match,
|
||||
.pm = &vf610_adc_pm_ops,
|
||||
},
|
||||
|
|
|
@ -145,7 +145,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
|
|||
static struct platform_driver vprbrd_adc_driver = {
|
||||
.driver = {
|
||||
.name = "viperboard-adc",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = vprbrd_adc_probe,
|
||||
};
|
||||
|
|
|
@ -416,7 +416,6 @@ static struct platform_driver hid_gyro_3d_platform_driver = {
|
|||
.id_table = hid_gyro_3d_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_gyro_3d_probe,
|
||||
.remove = hid_gyro_3d_remove,
|
||||
|
|
|
@ -281,7 +281,6 @@ static int dht11_probe(struct platform_device *pdev)
|
|||
static struct platform_driver dht11_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = dht11_dt_ids,
|
||||
},
|
||||
.probe = dht11_probe,
|
||||
|
|
|
@ -381,7 +381,6 @@ static struct platform_driver hid_als_platform_driver = {
|
|||
.id_table = hid_als_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_als_probe,
|
||||
.remove = hid_als_remove,
|
||||
|
|
|
@ -373,7 +373,6 @@ static struct platform_driver hid_prox_platform_driver = {
|
|||
.id_table = hid_prox_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_prox_probe,
|
||||
.remove = hid_prox_remove,
|
||||
|
|
|
@ -915,7 +915,6 @@ static int lm3533_als_remove(struct platform_device *pdev)
|
|||
static struct platform_driver lm3533_als_driver = {
|
||||
.driver = {
|
||||
.name = "lm3533-als",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = lm3533_als_probe,
|
||||
.remove = lm3533_als_remove,
|
||||
|
|
|
@ -530,7 +530,6 @@ static struct platform_driver hid_magn_3d_platform_driver = {
|
|||
.id_table = hid_magn_3d_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_magn_3d_probe,
|
||||
.remove = hid_magn_3d_remove,
|
||||
|
|
|
@ -437,7 +437,6 @@ static struct platform_driver hid_incl_3d_platform_driver = {
|
|||
.id_table = hid_incl_3d_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_incl_3d_probe,
|
||||
.remove = hid_incl_3d_remove,
|
||||
|
|
|
@ -334,7 +334,6 @@ static struct platform_driver hid_dev_rot_platform_driver = {
|
|||
.id_table = hid_dev_rot_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_dev_rot_probe,
|
||||
.remove = hid_dev_rot_remove,
|
||||
|
|
|
@ -382,7 +382,6 @@ static struct platform_driver hid_press_platform_driver = {
|
|||
.id_table = hid_press_ids,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = hid_press_probe,
|
||||
.remove = hid_press_remove,
|
||||
|
|
|
@ -109,7 +109,6 @@ static struct platform_driver iio_interrupt_trigger_driver = {
|
|||
.remove = iio_interrupt_trigger_remove,
|
||||
.driver = {
|
||||
.name = "iio_interrupt_trigger",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue