mtd: maps: pismo: Remove owner assignment from i2c_driver
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.
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/mtd/maps/pismo.c | 1 - 1 file changed, 1 deletion(-)
drivers/mtd/maps/pismo.c +0 -1
@@ -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
Boris Brezillon
AppliedQuoted 8 lines · On Mon, 23 Apr 2018 09:07:13 -0300 Fabio Estevam <[email protected]> wrote:
From: Fabio Estevam <[email protected]>
Structure
i2c_driverdoes 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.Signed-off-by Fabio Estevam <[email protected]>
Applied.
Thanks,
Boris
Quoted 16 lines
--- drivers/mtd/maps/pismo.c | 1 - 1 file changed, 1 deletion(-)drivers/mtd/maps/pismo.c +0
-1@@ -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,