iio: remove .owner field for driver using module_platform_driver
authorSanjeev Sharma <sanjeev_sharma@mentor.com>
Wed, 20 Aug 2014 09:32:00 +0000 (10:32 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 26 Aug 2014 20:08:38 +0000 (21:08 +0100)
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>
18 files changed:
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/adc/exynos_adc.c
drivers/iio/adc/lp8788_adc.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/adc/twl4030-madc.c
drivers/iio/adc/twl6030-gpadc.c
drivers/iio/adc/vf610_adc.c
drivers/iio/adc/viperboard_adc.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/humidity/dht11.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/light/hid-sensor-prox.c
drivers/iio/light/lm3533-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/pressure/hid-sensor-press.c
drivers/iio/trigger/iio-trig-interrupt.c

index 54e464e4bb725a21d6687037f5b5489b15f07233..d5d95317003ac8dd44ed29220fd343a538aee673 100644 (file)
@@ -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,
index c59012d2d06f18a24a204369804dc7ec660db926..43620fd4c66a73169b0ac1e34d42b1aa12fd060f 100644 (file)
@@ -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,
        },
index 5c8c91595f4735c12894a93cb6259281e49a9d13..152cfc8e1c7b690c81c7717fd6cfc1422b974f83 100644 (file)
@@ -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);
index d5dc4c6ce86ca3fcdadbaaa21867a15e9ef25ce3..b730864731e8b8b11aa8bbfe0bfb913bcfa2bc0b 100644 (file)
@@ -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,
        },
index eb86786e698eabf702655f9f974c9639956169c7..94c5f05b4bc1b5ff64fc26dd4825496c706cd4a2 100644 (file)
@@ -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),
        },
 };
index 15282f148b3ba2734de216dcb442a4510ee6c049..89d8aa1d2818502f974c92f7925ea4440df3d97d 100644 (file)
@@ -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,
        },
index 44799eb5930e2e03e71f9a4381165447b62b839a..4a10ae97dbf20a025a49c0af61908a93722fc60e 100644 (file)
@@ -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,
        },
index 9acf6b6d705bd34fa902b1aa911472df56538198..3be2e35721cc58f53c1691101553d952633b8126 100644 (file)
@@ -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,
 };
index fa034a3dad7850b62f1786d5ef6820d25269aa97..a3ea1e8785d748c3f5afe63f62447589cd849c5b 100644 (file)
@@ -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,
index d8771f546bf2d3bf501e77ed5258f22fbde0ce59..623c145d8a97241bd0c2e284d9bb273dfcfb72da 100644 (file)
@@ -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,
index 96e71e103ea7a29112f123c3858d9a75a57d5a87..a5283d75c0961da4d1a8aea12c0e902a98af618f 100644 (file)
@@ -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,
index 412bae86d6ae47e0b80e97e8bc02464d8ac70783..f5a514698fd8614e43b1f99fa4a460f303757764 100644 (file)
@@ -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,
index c1aadc6b865a73dd8c3d00045f84d3846dcd9cb5..ae3c71bdd6c6c6e597c672494b800c1d4c48ed82 100644 (file)
@@ -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,
index 1e717c71c2446fb94458e6a5a7851632f6182480..6294575d2777a102de395fae921a9e40b2e6b86f 100644 (file)
@@ -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,
index 2478f6c2ef25477eb35db475ca67872030ab0279..1ff181bbbcef8b1d7b744441965cedc835325e69 100644 (file)
@@ -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,
index dccf848e8b0fdd7a1f8ff6bca06e40fdafe587f5..4afb6c79ccbce808321e30fcf1353c30e2b03ec0 100644 (file)
@@ -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,
index 2c0d2a4fed8c66be978e8cc05d3dac1a8e71f681..764928682df2fb0d8489627b3436d4ac4f31a829 100644 (file)
@@ -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,
index 7a149a7822bcd9bf6aad40fd82aec99642ae0430..572bc6f02ca82987a9f3945bc073e4ab835effe9 100644 (file)
@@ -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,
        },
 };