[RESEND,3/3] media: ov13858: Remove owner assignment from i2c_driver

Message ID 1524483722-19783-3-git-send-email-festevam@gmail.com (mailing list archive)
State Accepted, archived
Delegated to: Sakari Ailus
Headers

Commit Message

Fabio Estevam April 23, 2018, 11:42 a.m. UTC
  From: Fabio Estevam <fabio.estevam@nxp.com>

Structure i2c_driver does not need to set the owner field, as this will
be populated by the driver core.

Generated by scripts/coccinelle/api/platform_no_drv_owner.cocci.

Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/media/i2c/ov13858.c | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index 30ee9f7..5b617a7 100644
--- a/drivers/media/i2c/ov13858.c
+++ b/drivers/media/i2c/ov13858.c
@@ -1805,7 +1805,6 @@  MODULE_DEVICE_TABLE(acpi, ov13858_acpi_ids);
 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),
 	},