mtd: maps: pismo: Remove owner assignment from i2c_driver
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 23 Apr 2018 12:07:13 +0000 (09:07 -0300)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 3 May 2018 09:42:31 +0000 (11:42 +0200)
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 <fabio.estevam@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/pismo.c

index dc6df9abea0bb51666566b06800ba84d7fee6fe9..c065d7995c0abd9f324e00a887598fadd0784347 100644 (file)
@@ -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,