iio: light: apds9960: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com>
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
---
drivers/iio/light/apds9960.c | 1 -
1 file changed, 1 deletion(-)
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, |
---
drivers/iio/light/apds9960.c | 1 -
1 file changed, 1 deletion(-)
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,