net: hisilicon: Remove .owner assignment from platform_driver
authorhuangdaode <huangdaode@hisilicon.com>
Fri, 30 Oct 2015 02:50:54 +0000 (10:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 21:03:41 +0000 (16:03 -0500)
platform_driver doesn't need to set .owner, because
platform_driver_register() will set it.

Signed-off-by: huangdaode <huangdaode@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c

index 302d3ae8e9e594a48da1791564cade416837128e..08cef0dfb5db29c9beda433330de3fac3d3b5be2 100644 (file)
@@ -1628,7 +1628,6 @@ MODULE_DEVICE_TABLE(of, hns_enet_of_match);
 static struct platform_driver hns_nic_dev_driver = {
        .driver = {
                .name = "hns-nic",
-               .owner = THIS_MODULE,
                .of_match_table = hns_enet_of_match,
        },
        .probe = hns_nic_dev_probe,