aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorSanjeev Sharma <sanjeev_sharma@mentor.com>2014-08-20 05:32:00 -0400
committerJonathan Cameron <jic23@kernel.org>2014-08-26 16:08:38 -0400
commit81816affeacfa360bfefabba774774e95f3dcc12 (patch)
tree0d05462b9373e4d18381db83d4ebf36fdf720d4a /drivers/iio
parentb4b491c0832ef90a7a5070e5975bc8427f2049ca (diff)
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/hid-sensor-accel-3d.c1
-rw-r--r--drivers/iio/adc/exynos_adc.c1
-rw-r--r--drivers/iio/adc/lp8788_adc.c1
-rw-r--r--drivers/iio/adc/ti_am335x_adc.c1
-rw-r--r--drivers/iio/adc/twl4030-madc.c1
-rw-r--r--drivers/iio/adc/twl6030-gpadc.c1
-rw-r--r--drivers/iio/adc/vf610_adc.c1
-rw-r--r--drivers/iio/adc/viperboard_adc.c1
-rw-r--r--drivers/iio/gyro/hid-sensor-gyro-3d.c1
-rw-r--r--drivers/iio/humidity/dht11.c1
-rw-r--r--drivers/iio/light/hid-sensor-als.c1
-rw-r--r--drivers/iio/light/hid-sensor-prox.c1
-rw-r--r--drivers/iio/light/lm3533-als.c1
-rw-r--r--drivers/iio/magnetometer/hid-sensor-magn-3d.c1
-rw-r--r--drivers/iio/orientation/hid-sensor-incl-3d.c1
-rw-r--r--drivers/iio/orientation/hid-sensor-rotation.c1
-rw-r--r--drivers/iio/pressure/hid-sensor-press.c1
-rw-r--r--drivers/iio/trigger/iio-trig-interrupt.c1
18 files changed, 0 insertions, 18 deletions
diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c b/drivers/iio/accel/hid-sensor-accel-3d.c
index 54e464e4bb72..d5d95317003a 100644
--- a/drivers/iio/accel/hid-sensor-accel-3d.c
+++ b/drivers/iio/accel/hid-sensor-accel-3d.c
@@ -419,7 +419,6 @@ static struct platform_driver hid_accel_3d_platform_driver = {
419 .id_table = hid_accel_3d_ids, 419 .id_table = hid_accel_3d_ids,
420 .driver = { 420 .driver = {
421 .name = KBUILD_MODNAME, 421 .name = KBUILD_MODNAME,
422 .owner = THIS_MODULE,
423 }, 422 },
424 .probe = hid_accel_3d_probe, 423 .probe = hid_accel_3d_probe,
425 .remove = hid_accel_3d_remove, 424 .remove = hid_accel_3d_remove,
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c
index c59012d2d06f..43620fd4c66a 100644
--- a/drivers/iio/adc/exynos_adc.c
+++ b/drivers/iio/adc/exynos_adc.c
@@ -723,7 +723,6 @@ static struct platform_driver exynos_adc_driver = {
723 .remove = exynos_adc_remove, 723 .remove = exynos_adc_remove,
724 .driver = { 724 .driver = {
725 .name = "exynos-adc", 725 .name = "exynos-adc",
726 .owner = THIS_MODULE,
727 .of_match_table = exynos_adc_match, 726 .of_match_table = exynos_adc_match,
728 .pm = &exynos_adc_pm_ops, 727 .pm = &exynos_adc_pm_ops,
729 }, 728 },
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c
index 5c8c91595f47..152cfc8e1c7b 100644
--- a/drivers/iio/adc/lp8788_adc.c
+++ b/drivers/iio/adc/lp8788_adc.c
@@ -244,7 +244,6 @@ static struct platform_driver lp8788_adc_driver = {
244 .remove = lp8788_adc_remove, 244 .remove = lp8788_adc_remove,
245 .driver = { 245 .driver = {
246 .name = LP8788_DEV_ADC, 246 .name = LP8788_DEV_ADC,
247 .owner = THIS_MODULE,
248 }, 247 },
249}; 248};
250module_platform_driver(lp8788_adc_driver); 249module_platform_driver(lp8788_adc_driver);
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index d5dc4c6ce86c..b730864731e8 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -545,7 +545,6 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids);
545static struct platform_driver tiadc_driver = { 545static struct platform_driver tiadc_driver = {
546 .driver = { 546 .driver = {
547 .name = "TI-am335x-adc", 547 .name = "TI-am335x-adc",
548 .owner = THIS_MODULE,
549 .pm = TIADC_PM_OPS, 548 .pm = TIADC_PM_OPS,
550 .of_match_table = ti_adc_dt_ids, 549 .of_match_table = ti_adc_dt_ids,
551 }, 550 },
diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c
index eb86786e698e..94c5f05b4bc1 100644
--- a/drivers/iio/adc/twl4030-madc.c
+++ b/drivers/iio/adc/twl4030-madc.c
@@ -883,7 +883,6 @@ static struct platform_driver twl4030_madc_driver = {
883 .remove = twl4030_madc_remove, 883 .remove = twl4030_madc_remove,
884 .driver = { 884 .driver = {
885 .name = "twl4030_madc", 885 .name = "twl4030_madc",
886 .owner = THIS_MODULE,
887 .of_match_table = of_match_ptr(twl_madc_of_match), 886 .of_match_table = of_match_ptr(twl_madc_of_match),
888 }, 887 },
889}; 888};
diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
index 15282f148b3b..89d8aa1d2818 100644
--- a/drivers/iio/adc/twl6030-gpadc.c
+++ b/drivers/iio/adc/twl6030-gpadc.c
@@ -994,7 +994,6 @@ static struct platform_driver twl6030_gpadc_driver = {
994 .remove = twl6030_gpadc_remove, 994 .remove = twl6030_gpadc_remove,
995 .driver = { 995 .driver = {
996 .name = DRIVER_NAME, 996 .name = DRIVER_NAME,
997 .owner = THIS_MODULE,
998 .pm = &twl6030_gpadc_pm_ops, 997 .pm = &twl6030_gpadc_pm_ops,
999 .of_match_table = of_twl6030_match_tbl, 998 .of_match_table = of_twl6030_match_tbl,
1000 }, 999 },
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index 44799eb5930e..4a10ae97dbf2 100644
--- a/drivers/iio/adc/vf610_adc.c
+++ b/drivers/iio/adc/vf610_adc.c
@@ -698,7 +698,6 @@ static struct platform_driver vf610_adc_driver = {
698 .remove = vf610_adc_remove, 698 .remove = vf610_adc_remove,
699 .driver = { 699 .driver = {
700 .name = DRIVER_NAME, 700 .name = DRIVER_NAME,
701 .owner = THIS_MODULE,
702 .of_match_table = vf610_adc_match, 701 .of_match_table = vf610_adc_match,
703 .pm = &vf610_adc_pm_ops, 702 .pm = &vf610_adc_pm_ops,
704 }, 703 },
diff --git a/drivers/iio/adc/viperboard_adc.c b/drivers/iio/adc/viperboard_adc.c
index 9acf6b6d705b..3be2e35721cc 100644
--- a/drivers/iio/adc/viperboard_adc.c
+++ b/drivers/iio/adc/viperboard_adc.c
@@ -145,7 +145,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
145static struct platform_driver vprbrd_adc_driver = { 145static struct platform_driver vprbrd_adc_driver = {
146 .driver = { 146 .driver = {
147 .name = "viperboard-adc", 147 .name = "viperboard-adc",
148 .owner = THIS_MODULE,
149 }, 148 },
150 .probe = vprbrd_adc_probe, 149 .probe = vprbrd_adc_probe,
151}; 150};
diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c
index fa034a3dad78..a3ea1e8785d7 100644
--- a/drivers/iio/gyro/hid-sensor-gyro-3d.c
+++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c
@@ -416,7 +416,6 @@ static struct platform_driver hid_gyro_3d_platform_driver = {
416 .id_table = hid_gyro_3d_ids, 416 .id_table = hid_gyro_3d_ids,
417 .driver = { 417 .driver = {
418 .name = KBUILD_MODNAME, 418 .name = KBUILD_MODNAME,
419 .owner = THIS_MODULE,
420 }, 419 },
421 .probe = hid_gyro_3d_probe, 420 .probe = hid_gyro_3d_probe,
422 .remove = hid_gyro_3d_remove, 421 .remove = hid_gyro_3d_remove,
diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c
index d8771f546bf2..623c145d8a97 100644
--- a/drivers/iio/humidity/dht11.c
+++ b/drivers/iio/humidity/dht11.c
@@ -281,7 +281,6 @@ static int dht11_probe(struct platform_device *pdev)
281static struct platform_driver dht11_driver = { 281static struct platform_driver dht11_driver = {
282 .driver = { 282 .driver = {
283 .name = DRIVER_NAME, 283 .name = DRIVER_NAME,
284 .owner = THIS_MODULE,
285 .of_match_table = dht11_dt_ids, 284 .of_match_table = dht11_dt_ids,
286 }, 285 },
287 .probe = dht11_probe, 286 .probe = dht11_probe,
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index 96e71e103ea7..a5283d75c096 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -381,7 +381,6 @@ static struct platform_driver hid_als_platform_driver = {
381 .id_table = hid_als_ids, 381 .id_table = hid_als_ids,
382 .driver = { 382 .driver = {
383 .name = KBUILD_MODNAME, 383 .name = KBUILD_MODNAME,
384 .owner = THIS_MODULE,
385 }, 384 },
386 .probe = hid_als_probe, 385 .probe = hid_als_probe,
387 .remove = hid_als_remove, 386 .remove = hid_als_remove,
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c
index 412bae86d6ae..f5a514698fd8 100644
--- a/drivers/iio/light/hid-sensor-prox.c
+++ b/drivers/iio/light/hid-sensor-prox.c
@@ -373,7 +373,6 @@ static struct platform_driver hid_prox_platform_driver = {
373 .id_table = hid_prox_ids, 373 .id_table = hid_prox_ids,
374 .driver = { 374 .driver = {
375 .name = KBUILD_MODNAME, 375 .name = KBUILD_MODNAME,
376 .owner = THIS_MODULE,
377 }, 376 },
378 .probe = hid_prox_probe, 377 .probe = hid_prox_probe,
379 .remove = hid_prox_remove, 378 .remove = hid_prox_remove,
diff --git a/drivers/iio/light/lm3533-als.c b/drivers/iio/light/lm3533-als.c
index c1aadc6b865a..ae3c71bdd6c6 100644
--- a/drivers/iio/light/lm3533-als.c
+++ b/drivers/iio/light/lm3533-als.c
@@ -915,7 +915,6 @@ static int lm3533_als_remove(struct platform_device *pdev)
915static struct platform_driver lm3533_als_driver = { 915static struct platform_driver lm3533_als_driver = {
916 .driver = { 916 .driver = {
917 .name = "lm3533-als", 917 .name = "lm3533-als",
918 .owner = THIS_MODULE,
919 }, 918 },
920 .probe = lm3533_als_probe, 919 .probe = lm3533_als_probe,
921 .remove = lm3533_als_remove, 920 .remove = lm3533_als_remove,
diff --git a/drivers/iio/magnetometer/hid-sensor-magn-3d.c b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
index 1e717c71c244..6294575d2777 100644
--- a/drivers/iio/magnetometer/hid-sensor-magn-3d.c
+++ b/drivers/iio/magnetometer/hid-sensor-magn-3d.c
@@ -530,7 +530,6 @@ static struct platform_driver hid_magn_3d_platform_driver = {
530 .id_table = hid_magn_3d_ids, 530 .id_table = hid_magn_3d_ids,
531 .driver = { 531 .driver = {
532 .name = KBUILD_MODNAME, 532 .name = KBUILD_MODNAME,
533 .owner = THIS_MODULE,
534 }, 533 },
535 .probe = hid_magn_3d_probe, 534 .probe = hid_magn_3d_probe,
536 .remove = hid_magn_3d_remove, 535 .remove = hid_magn_3d_remove,
diff --git a/drivers/iio/orientation/hid-sensor-incl-3d.c b/drivers/iio/orientation/hid-sensor-incl-3d.c
index 2478f6c2ef25..1ff181bbbcef 100644
--- a/drivers/iio/orientation/hid-sensor-incl-3d.c
+++ b/drivers/iio/orientation/hid-sensor-incl-3d.c
@@ -437,7 +437,6 @@ static struct platform_driver hid_incl_3d_platform_driver = {
437 .id_table = hid_incl_3d_ids, 437 .id_table = hid_incl_3d_ids,
438 .driver = { 438 .driver = {
439 .name = KBUILD_MODNAME, 439 .name = KBUILD_MODNAME,
440 .owner = THIS_MODULE,
441 }, 440 },
442 .probe = hid_incl_3d_probe, 441 .probe = hid_incl_3d_probe,
443 .remove = hid_incl_3d_remove, 442 .remove = hid_incl_3d_remove,
diff --git a/drivers/iio/orientation/hid-sensor-rotation.c b/drivers/iio/orientation/hid-sensor-rotation.c
index dccf848e8b0f..4afb6c79ccbc 100644
--- a/drivers/iio/orientation/hid-sensor-rotation.c
+++ b/drivers/iio/orientation/hid-sensor-rotation.c
@@ -334,7 +334,6 @@ static struct platform_driver hid_dev_rot_platform_driver = {
334 .id_table = hid_dev_rot_ids, 334 .id_table = hid_dev_rot_ids,
335 .driver = { 335 .driver = {
336 .name = KBUILD_MODNAME, 336 .name = KBUILD_MODNAME,
337 .owner = THIS_MODULE,
338 }, 337 },
339 .probe = hid_dev_rot_probe, 338 .probe = hid_dev_rot_probe,
340 .remove = hid_dev_rot_remove, 339 .remove = hid_dev_rot_remove,
diff --git a/drivers/iio/pressure/hid-sensor-press.c b/drivers/iio/pressure/hid-sensor-press.c
index 2c0d2a4fed8c..764928682df2 100644
--- a/drivers/iio/pressure/hid-sensor-press.c
+++ b/drivers/iio/pressure/hid-sensor-press.c
@@ -382,7 +382,6 @@ static struct platform_driver hid_press_platform_driver = {
382 .id_table = hid_press_ids, 382 .id_table = hid_press_ids,
383 .driver = { 383 .driver = {
384 .name = KBUILD_MODNAME, 384 .name = KBUILD_MODNAME,
385 .owner = THIS_MODULE,
386 }, 385 },
387 .probe = hid_press_probe, 386 .probe = hid_press_probe,
388 .remove = hid_press_remove, 387 .remove = hid_press_remove,
diff --git a/drivers/iio/trigger/iio-trig-interrupt.c b/drivers/iio/trigger/iio-trig-interrupt.c
index 7a149a7822bc..572bc6f02ca8 100644
--- a/drivers/iio/trigger/iio-trig-interrupt.c
+++ b/drivers/iio/trigger/iio-trig-interrupt.c
@@ -109,7 +109,6 @@ static struct platform_driver iio_interrupt_trigger_driver = {
109 .remove = iio_interrupt_trigger_remove, 109 .remove = iio_interrupt_trigger_remove,
110 .driver = { 110 .driver = {
111 .name = "iio_interrupt_trigger", 111 .name = "iio_interrupt_trigger",
112 .owner = THIS_MODULE,
113 }, 112 },
114}; 113};
115 114