aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/orientation
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/orientation
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/orientation')
-rw-r--r--drivers/iio/orientation/hid-sensor-incl-3d.c1
-rw-r--r--drivers/iio/orientation/hid-sensor-rotation.c1
2 files changed, 0 insertions, 2 deletions
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,