diff options
author | Sanjeev Sharma <sanjeev_sharma@mentor.com> | 2014-08-20 05:32:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-08-26 16:08:38 -0400 |
commit | 81816affeacfa360bfefabba774774e95f3dcc12 (patch) | |
tree | 0d05462b9373e4d18381db83d4ebf36fdf720d4a /drivers/iio/light | |
parent | b4b491c0832ef90a7a5070e5975bc8427f2049ca (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/light')
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 1 | ||||
-rw-r--r-- | drivers/iio/light/hid-sensor-prox.c | 1 | ||||
-rw-r--r-- | drivers/iio/light/lm3533-als.c | 1 |
3 files changed, 0 insertions, 3 deletions
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) | |||
915 | static struct platform_driver lm3533_als_driver = { | 915 | static 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, |