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 d49bee38cd319a0a8c7afd2cad7f1cb1ac7f2ed3..cc2d8b4b18e3e2a99ef303b76809545496089787 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 b3bac25db99cf59ed1cdd2e990962cf129297846..fca0a5be1f0f732cd340dd056e6be86b2fb0a925 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 5ec4ed3f6c8def7a6a6cf527cd9ac7ca73c09844..3e47202b901025e82d0ad0777703da181ab7ec88 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,