Skip to content

Commit

Permalink
net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YueHaibing authored and David S. Miller committed Oct 6, 2019
1 parent d131c5b commit 59d5578
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/dsa/microchip/ksz9477_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 59d5578

Please sign in to comment.