Skip to content

Commit 81816af

Browse files
sanjeevs1jic23
authored andcommitted
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>
1 parent b4b491c commit 81816af

18 files changed

Lines changed: 0 additions & 18 deletions

‎drivers/iio/accel/hid-sensor-accel-3d.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ static struct platform_driver hid_accel_3d_platform_driver = {
419419
.id_table = hid_accel_3d_ids,
420420
.driver = {
421421
.name = KBUILD_MODNAME,
422-
.owner = THIS_MODULE,
423422
},
424423
.probe = hid_accel_3d_probe,
425424
.remove = hid_accel_3d_remove,

‎drivers/iio/adc/exynos_adc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,6 @@ static struct platform_driver exynos_adc_driver = {
723723
.remove = exynos_adc_remove,
724724
.driver = {
725725
.name = "exynos-adc",
726-
.owner = THIS_MODULE,
727726
.of_match_table = exynos_adc_match,
728727
.pm = &exynos_adc_pm_ops,
729728
},

‎drivers/iio/adc/lp8788_adc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ static struct platform_driver lp8788_adc_driver = {
244244
.remove = lp8788_adc_remove,
245245
.driver = {
246246
.name = LP8788_DEV_ADC,
247-
.owner = THIS_MODULE,
248247
},
249248
};
250249
module_platform_driver(lp8788_adc_driver);

‎drivers/iio/adc/ti_am335x_adc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids);
545545
static struct platform_driver tiadc_driver = {
546546
.driver = {
547547
.name = "TI-am335x-adc",
548-
.owner = THIS_MODULE,
549548
.pm = TIADC_PM_OPS,
550549
.of_match_table = ti_adc_dt_ids,
551550
},

‎drivers/iio/adc/twl4030-madc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ static struct platform_driver twl4030_madc_driver = {
883883
.remove = twl4030_madc_remove,
884884
.driver = {
885885
.name = "twl4030_madc",
886-
.owner = THIS_MODULE,
887886
.of_match_table = of_match_ptr(twl_madc_of_match),
888887
},
889888
};

‎drivers/iio/adc/twl6030-gpadc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ static struct platform_driver twl6030_gpadc_driver = {
994994
.remove = twl6030_gpadc_remove,
995995
.driver = {
996996
.name = DRIVER_NAME,
997-
.owner = THIS_MODULE,
998997
.pm = &twl6030_gpadc_pm_ops,
999998
.of_match_table = of_twl6030_match_tbl,
1000999
},

‎drivers/iio/adc/vf610_adc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,6 @@ static struct platform_driver vf610_adc_driver = {
698698
.remove = vf610_adc_remove,
699699
.driver = {
700700
.name = DRIVER_NAME,
701-
.owner = THIS_MODULE,
702701
.of_match_table = vf610_adc_match,
703702
.pm = &vf610_adc_pm_ops,
704703
},

‎drivers/iio/adc/viperboard_adc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
145145
static struct platform_driver vprbrd_adc_driver = {
146146
.driver = {
147147
.name = "viperboard-adc",
148-
.owner = THIS_MODULE,
149148
},
150149
.probe = vprbrd_adc_probe,
151150
};

‎drivers/iio/gyro/hid-sensor-gyro-3d.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ static struct platform_driver hid_gyro_3d_platform_driver = {
416416
.id_table = hid_gyro_3d_ids,
417417
.driver = {
418418
.name = KBUILD_MODNAME,
419-
.owner = THIS_MODULE,
420419
},
421420
.probe = hid_gyro_3d_probe,
422421
.remove = hid_gyro_3d_remove,

‎drivers/iio/humidity/dht11.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ static int dht11_probe(struct platform_device *pdev)
281281
static struct platform_driver dht11_driver = {
282282
.driver = {
283283
.name = DRIVER_NAME,
284-
.owner = THIS_MODULE,
285284
.of_match_table = dht11_dt_ids,
286285
},
287286
.probe = dht11_probe,

0 commit comments

Comments
 (0)