net: dsa: ksz9477: fix platform_no_drv_owner.cocci warning
authorYueHaibing <yuehaibing@huawei.com>
Sun, 6 Oct 2019 10:50:07 +0000 (18:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 16:37:43 +0000 (18:37 +0200)
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>
drivers/net/dsa/microchip/ksz9477_i2c.c

index 0b1e01f0873d5733336e3c291148f5993494f3c1..b0a1595d780d6f8841a4862e887d5eb00d586757 100644 (file)
@@ -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,