diff mbox

i2c: fix platform_no_drv_owner.cocci warnings

Message ID 20170524135849.GA18456@intel17.lkp.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

kernel test robot May 24, 2017, 1:58 p.m. UTC
drivers/media/i2c/ov13858.c:1838: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: Hyungwoo Yang <hyungwoo.yang@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 ov13858.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

--- a/drivers/media/i2c/ov13858.c
+++ b/drivers/media/i2c/ov13858.c
@@ -1835,7 +1835,6 @@  MODULE_DEVICE_TABLE(acpi, ov13858_acpi_i
 static struct i2c_driver ov13858_i2c_driver = {
 	.driver = {
 		.name = "ov13858",
-		.owner = THIS_MODULE,
 		.pm = &ov13858_pm_ops,
 		.acpi_match_table = ACPI_PTR(ov13858_acpi_ids),
 	},