Skip to contentSkip to conversation

media: ov2685: Remove owner assignment from platform_driver

PATCH Superseded Fabio Estevam 1 participant 1 message Mar 16, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: ov2685: Remove owner assignment from platform_driver

From: Fabio Estevam <[email protected]>

platform_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/ov2685.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/ov2685.c +0 -1
index 83c55e8..385c188 100644
@@ -832,7 +832,6 @@ MODULE_DEVICE_TABLE(of, ov2685_of_match);
 static struct i2c_driver ov2685_i2c_driver = {
 	.driver = {
 		.name = "ov2685",
-		.owner = THIS_MODULE,
 		.pm = &ov2685_pm_ops,
 		.of_match_table = of_match_ptr(ov2685_of_match),
 	},
Signature · 1 line
2.7.4