From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAaJC-00039Q-Ie for linux-mtd@lists.infradead.org; Mon, 23 Apr 2018 12:11:04 +0000 Received: by mail-qk0-x241.google.com with SMTP id s78so15839721qkl.8 for ; Mon, 23 Apr 2018 05:10:50 -0700 (PDT) From: Fabio Estevam To: boris.brezillon@bootlin.com Cc: marek.vasut@gmail.com, linux-mtd@lists.infradead.org, Fabio Estevam Subject: [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver Date: Mon, 23 Apr 2018 09:07:13 -0300 Message-Id: <1524485233-20502-1-git-send-email-festevam@gmail.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Fabio Estevam 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 --- drivers/mtd/maps/pismo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c index dc6df9a..c065d79 100644 --- a/drivers/mtd/maps/pismo.c +++ b/drivers/mtd/maps/pismo.c @@ -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, -- 2.7.4