Skip to contentSkip to conversation

media: si2165: Remove owner assignment from i2c_driver

PATCH RESEND New Fabio Estevam 1 participant 3 messages Apr 23, 2018

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/3 media: si2165: Remove owner assignment from i2c_driver

From: Fabio Estevam <[email protected]>

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.

---
 drivers/media/dvb-frontends/si2165.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/dvb-frontends/si2165.c +0 -1
index 2dd336f..d132e3c 100644
@@ -1299,7 +1299,6 @@ MODULE_DEVICE_TABLE(i2c, si2165_id_table);
 
 static struct i2c_driver si2165_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= "si2165",
 	},
 	.probe		= si2165_probe,
Signature · 1 line
2.7.4
#1 lore raw

PATCH RESEND 2/3 media: ov5695: Remove owner assignment from i2c_driver

From: Fabio Estevam <[email protected]>

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.

---
 drivers/media/i2c/ov5695.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/ov5695.c +0 -1
index 9be38a0..9a80dec 100644
@@ -1385,7 +1385,6 @@ MODULE_DEVICE_TABLE(of, ov5695_of_match);
 static struct i2c_driver ov5695_i2c_driver = {
 	.driver = {
 		.name = "ov5695",
-		.owner = THIS_MODULE,
 		.pm = &ov5695_pm_ops,
 		.of_match_table = of_match_ptr(ov5695_of_match),
 	},
Signature · 1 line
2.7.4
#2 lore raw

PATCH RESEND 3/3 media: ov13858: Remove owner assignment from i2c_driver

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

---
 drivers/media/i2c/ov13858.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/ov13858.c +0 -1
index 30ee9f7..5b617a7 100644
@@ -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),
 	},
Signature · 1 line
2.7.4