All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver
@ 2018-04-23 12:07 Fabio Estevam
  2018-05-04 19:34 ` Boris Brezillon
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2018-04-23 12:07 UTC (permalink / raw)
  To: boris.brezillon; +Cc: marek.vasut, linux-mtd, Fabio Estevam

From: Fabio Estevam <fabio.estevam@nxp.com>

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>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver
  2018-04-23 12:07 [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver Fabio Estevam
@ 2018-05-04 19:34 ` Boris Brezillon
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-05-04 19:34 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Fabio Estevam, marek.vasut, linux-mtd

On Mon, 23 Apr 2018 09:07:13 -0300
Fabio Estevam <festevam@gmail.com> wrote:

> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> 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>

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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-04 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23 12:07 [PATCH] mtd: maps: pismo: Remove owner assignment from i2c_driver Fabio Estevam
2018-05-04 19:34 ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.