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-Tag: v5.15~14806^2~1379^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d2f1e084b7386b4082ebc2490ce0ddc8efe5667;p=platform%2Fkernel%2Flinux-starfive.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 8d7ce6a..bf80ce4 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,