From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEgTc-0005ow-94 for linux-mtd@lists.infradead.org; Fri, 04 May 2018 19:34:45 +0000 Date: Fri, 4 May 2018 21:34:32 +0200 From: Boris Brezillon To: Fabio Estevam Cc: Fabio Estevam , marek.vasut@gmail.com, linux-mtd@lists.infradead.org Subject: Re: [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver Message-ID: <20180504213432.21599de2@bbrezillon> In-Reply-To: <1524485233-20502-1-git-send-email-festevam@gmail.com> References: <1524485233-20502-1-git-send-email-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 23 Apr 2018 09:07:13 -0300 Fabio Estevam wrote: > 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 Applied. Thanks, Boris > --- > 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,