net: xilinx: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:54:22 +0000 (13:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 21:38:54 +0000 (14:38 -0700)
There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/ethernet/xilinx/xilinx_emaclite.c

index 36f4459520c366a88a33c9cf2663bf9e713955c3..fda5891835d4c8ea3b2fad1725d542dc0dacff10 100644 (file)
@@ -1170,7 +1170,6 @@ static struct platform_driver temac_of_driver = {
        .probe = temac_of_probe,
        .remove = temac_of_remove,
        .driver = {
-               .owner = THIS_MODULE,
                .name = "xilinx_temac",
                .of_match_table = temac_of_match,
        },
index 30e8608ff05079c3083ba2a6783070e056e36571..c8fd94133ecd22380cf047bf44a3e21064f5154f 100644 (file)
@@ -1645,7 +1645,6 @@ static struct platform_driver axienet_of_driver = {
        .probe = axienet_of_probe,
        .remove = axienet_of_remove,
        .driver = {
-                .owner = THIS_MODULE,
                 .name = "xilinx_axienet",
                 .of_match_table = axienet_of_match,
        },
index 782bb9373cd817e366bc1ba914659285863bd4e4..28dbbdc393ebf251cb782ff2ee4b5d276fa99d87 100644 (file)
@@ -1245,7 +1245,6 @@ MODULE_DEVICE_TABLE(of, xemaclite_of_match);
 static struct platform_driver xemaclite_of_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = xemaclite_of_match,
        },
        .probe          = xemaclite_of_probe,