From: kbuild test robot Date: Tue, 22 Sep 2015 02:21:48 +0000 (+0800) Subject: iio: light: apds9960: fix platform_no_drv_owner.cocci warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d2f1e084b7386b4082ebc2490ce0ddc8efe5667;p=openwrt%2Fstaging%2Fblogic.git iio: light: apds9960: fix platform_no_drv_owner.cocci warnings 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 Signed-off-by: Fengguang Wu Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index 8d7ce6a9296d..bf80ce47926b 100644 --- a/drivers/iio/light/apds9960.c +++ b/drivers/iio/light/apds9960.c @@ -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,