All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] spi: npcm: fix platform_no_drv_owner.cocci warnings
@ 2018-11-15  1:59 ` YueHaibing
  0 siblings, 0 replies; 4+ messages in thread
From: YueHaibing @ 2018-11-15  1:59 UTC (permalink / raw)
  To: Avi Fishman, Tomer Maimon, Patrick Venture, Nancy Yuen,
	Brendan Higgins, Mark Brown
  Cc: YueHaibing, openbmc, linux-spi, kernel-janitors

Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/spi/spi-npcm-pspi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-npcm-pspi.c b/drivers/spi/spi-npcm-pspi.c
index 5177751..f5d68e9 100644
--- a/drivers/spi/spi-npcm-pspi.c
+++ b/drivers/spi/spi-npcm-pspi.c
@@ -467,7 +467,6 @@ static int npcm_pspi_remove(struct platform_device *pdev)
 	.driver		= {
 		.name		= DRIVER_NAME,
 		.of_match_table	= npcm_pspi_match,
-		.owner		= THIS_MODULE,
 	},
 	.probe		= npcm_pspi_probe,
 	.remove		= npcm_pspi_remove,

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

* [PATCH -next] spi: npcm: fix platform_no_drv_owner.cocci warnings
@ 2018-11-15  1:59 ` YueHaibing
  0 siblings, 0 replies; 4+ messages in thread
From: YueHaibing @ 2018-11-15  1:59 UTC (permalink / raw)
  To: Avi Fishman, Tomer Maimon, Patrick Venture, Nancy Yuen,
	Brendan Higgins, Mark Brown
  Cc: YueHaibing, openbmc, linux-spi, kernel-janitors

Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/spi/spi-npcm-pspi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-npcm-pspi.c b/drivers/spi/spi-npcm-pspi.c
index 5177751..f5d68e9 100644
--- a/drivers/spi/spi-npcm-pspi.c
+++ b/drivers/spi/spi-npcm-pspi.c
@@ -467,7 +467,6 @@ static int npcm_pspi_remove(struct platform_device *pdev)
 	.driver		= {
 		.name		= DRIVER_NAME,
 		.of_match_table	= npcm_pspi_match,
-		.owner		= THIS_MODULE,
 	},
 	.probe		= npcm_pspi_probe,
 	.remove		= npcm_pspi_remove,

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

* Re: [PATCH -next] spi: npcm: fix platform_no_drv_owner.cocci warnings
  2018-11-15  1:59 ` YueHaibing
@ 2018-11-15 19:20   ` Mark Brown
  -1 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2018-11-15 19:20 UTC (permalink / raw)
  To: YueHaibing
  Cc: Avi Fishman, Tomer Maimon, Patrick Venture, Nancy Yuen,
	Brendan Higgins, openbmc, linux-spi, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

On Thu, Nov 15, 2018 at 01:59:49AM +0000, YueHaibing wrote:
> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Thanks, I got another copy of this fix which I applied already though.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH -next] spi: npcm: fix platform_no_drv_owner.cocci warnings
@ 2018-11-15 19:20   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2018-11-15 19:20 UTC (permalink / raw)
  To: YueHaibing
  Cc: Avi Fishman, Tomer Maimon, Patrick Venture, Nancy Yuen,
	Brendan Higgins, openbmc, linux-spi, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

On Thu, Nov 15, 2018 at 01:59:49AM +0000, YueHaibing wrote:
> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Thanks, I got another copy of this fix which I applied already though.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2018-11-15 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15  1:59 [PATCH -next] spi: npcm: fix platform_no_drv_owner.cocci warnings YueHaibing
2018-11-15  1:59 ` YueHaibing
2018-11-15 19:20 ` Mark Brown
2018-11-15 19:20   ` Mark Brown

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.