net: Drop owner assignment from platform_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 06:29:23 +0000 (15:29 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jul 2015 06:18:29 +0000 (23:18 -0700)
platform_driver does not need to set an owner because
platform_driver_register() will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c
drivers/net/ethernet/hisilicon/hip04_mdio.c
drivers/net/ethernet/ti/netcp_core.c

index d49bee3..cc2d8b4 100644 (file)
@@ -965,7 +965,6 @@ static struct platform_driver hip04_mac_driver = {
        .remove = hip04_remove,
        .driver = {
                .name           = DRV_NAME,
-               .owner          = THIS_MODULE,
                .of_match_table = hip04_mac_match,
        },
 };
index b3bac25..fca0a5b 100644 (file)
@@ -174,7 +174,6 @@ static struct platform_driver hip04_mdio_driver = {
        .remove = hip04_mdio_remove,
        .driver = {
                .name = "hip04-mdio",
-               .owner = THIS_MODULE,
                .of_match_table = hip04_mdio_match,
        },
 };
index 5ec4ed3..3e47202 100644 (file)
@@ -2142,7 +2142,6 @@ MODULE_DEVICE_TABLE(of, of_match);
 static struct platform_driver netcp_driver = {
        .driver = {
                .name           = "netcp-1.0",
-               .owner          = THIS_MODULE,
                .of_match_table = of_match,
        },
        .probe = netcp_probe,