iio: light: apds9960: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 22 Sep 2015 02:21:48 +0000 (10:21 +0800)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:30 +0000 (20:23 +0100)
drivers/iio/light/apds9960.c:1125:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/apds9960.c

index 8d7ce6a9296dc4ee9d99a132425fb6cc4bdc3104..bf80ce47926bdfee64f6978fa79acb783bfa92aa 100644 (file)
@@ -1118,7 +1118,6 @@ static struct i2c_driver apds9960_driver = {
        .driver = {
                .name   = APDS9960_DRV_NAME,
                .pm     = &apds9960_pm_ops,
-               .owner = THIS_MODULE,
        },
        .probe          = apds9960_probe,
        .remove         = apds9960_remove,