All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning
@ 2019-10-06 10:50 YueHaibing
  2019-10-06 16:37 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2019-10-06 10:50 UTC (permalink / raw)
  To: woojung.huh, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli, davem
  Cc: netdev, linux-kernel, YueHaibing

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/net/dsa/microchip/ksz9477_i2c.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c
index 0b1e01f..b0a1595 100644
--- a/drivers/net/dsa/microchip/ksz9477_i2c.c
+++ b/drivers/net/dsa/microchip/ksz9477_i2c.c
@@ -85,7 +85,6 @@ MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
 static struct i2c_driver ksz9477_i2c_driver = {
 	.driver = {
 		.name	= "ksz9477-switch",
-		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(ksz9477_dt_ids),
 	},
 	.probe	= ksz9477_i2c_probe,
-- 
2.7.4



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

* Re: [PATCH net-next] net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning
  2019-10-06 10:50 [PATCH net-next] net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning YueHaibing
@ 2019-10-06 16:37 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-10-06 16:37 UTC (permalink / raw)
  To: yuehaibing
  Cc: woojung.huh, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli,
	netdev, linux-kernel

From: YueHaibing <yuehaibing@huawei.com>
Date: Sun, 6 Oct 2019 18:50:07 +0800

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

Applied.

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

end of thread, other threads:[~2019-10-06 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-06 10:50 [PATCH net-next] net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning YueHaibing
2019-10-06 16:37 ` David Miller

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.