]> Git Repo - linux.git/commitdiff
iio: light: apds9960: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <[email protected]>
Tue, 22 Sep 2015 02:21:48 +0000 (10:21 +0800)
committerJonathan Cameron <[email protected]>
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 <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
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,
This page took 0.0616 seconds and 4 git commands to generate.