[PATCH] iio: fix platform_no_drv_owner.cocci warnings
From: kbuild test robot
Date: Fri Jun 17 2016 - 17:22:06 EST
drivers/iio/light/si1145.c:1336: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: Peter Meerwald <pmeerw@xxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---
si1145.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/iio/light/si1145.c
+++ b/drivers/iio/light/si1145.c
@@ -1333,7 +1333,6 @@ static int si1145_remove(struct i2c_clie
static struct i2c_driver si1145_driver = {
.driver = {
.name = "si1145",
- .owner = THIS_MODULE,
},
.probe = si1145_probe,
.remove = si1145_remove,