OSDN Git Service

net: ethernet: faraday: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:07 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:07 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/net/ethernet/faraday/ftgmac100.c
drivers/net/ethernet/faraday/ftmac100.c

index c77fa4a..6d0c5d5 100644 (file)
@@ -1335,7 +1335,6 @@ static struct platform_driver ftgmac100_driver = {
        .remove         = __exit_p(ftgmac100_remove),
        .driver         = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
        },
 };
 
index 4ff1adc..dce5f7b 100644 (file)
@@ -1177,7 +1177,6 @@ static struct platform_driver ftmac100_driver = {
        .remove         = __exit_p(ftmac100_remove),
        .driver         = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
        },
 };