Skip to contentSkip to conversation

mtd: maps: pismo: Remove owner assignment from i2c_driver

PATCH Applied Fabio Estevam 2 participants 2 messages Apr 23, 2018 – May 4, 2018 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: maps: pismo: 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/mtd/maps/pismo.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/maps/pismo.c +0 -1
index dc6df9a..c065d79 100644
@@ -265,7 +265,6 @@ MODULE_DEVICE_TABLE(i2c, pismo_id);
 static struct i2c_driver pismo_driver = {
 	.driver	= {
 		.name	= "pismo",
-		.owner	= THIS_MODULE,
 	},
 	.probe		= pismo_probe,
 	.remove		= pismo_remove,
Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · On Mon, 23 Apr 2018 09:07:13 -0300 Fabio Estevam <[email protected]> wrote:

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.

Applied.

Thanks,

Boris

Quoted 16 lines
---
 drivers/mtd/maps/pismo.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/maps/pismo.c +0 -1
index dc6df9a..c065d79 100644
@@ -265,7 +265,6 @@ MODULE_DEVICE_TABLE(i2c, pismo_id);
 static struct i2c_driver pismo_driver = {
 	.driver	= {
 		.name	= "pismo",
-		.owner	= THIS_MODULE,
 	},
 	.probe		= pismo_probe,
 	.remove		= pismo_remove,