[PATCH] staging/atomisp: fix platform_no_drv_owner.cocci warnings

kbuild test robot fengguang.wu at intel.com
Wed Mar 1 10:30:17 UTC 2017


drivers/staging/media/atomisp/i2c/ap1302.c:1250: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: Alan Cox <alan at linux.intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---

 ap1302.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/staging/media/atomisp/i2c/ap1302.c
+++ b/drivers/staging/media/atomisp/i2c/ap1302.c
@@ -1247,7 +1247,6 @@ MODULE_DEVICE_TABLE(i2c, ap1302_id);
 
 static struct i2c_driver ap1302_driver = {
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = AP1302_NAME,
 	},
 	.probe = ap1302_probe,


More information about the devel mailing list