diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-08-13 07:54:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-14 17:38:54 -0400 |
commit | fdd42e4400fcb5fe837a20a8d837ef094d5a26fb (patch) | |
tree | 1025b7fa6046590a4f0ccd897f574b50f324a342 /drivers/net | |
parent | 5e3c516b512c0f8f18359413b04918f6347f67e7 (diff) |
net: xilinx: Remove .owner field for driver
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 36f4459520c3..fda5891835d4 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c | |||
@@ -1170,7 +1170,6 @@ static struct platform_driver temac_of_driver = { | |||
1170 | .probe = temac_of_probe, | 1170 | .probe = temac_of_probe, |
1171 | .remove = temac_of_remove, | 1171 | .remove = temac_of_remove, |
1172 | .driver = { | 1172 | .driver = { |
1173 | .owner = THIS_MODULE, | ||
1174 | .name = "xilinx_temac", | 1173 | .name = "xilinx_temac", |
1175 | .of_match_table = temac_of_match, | 1174 | .of_match_table = temac_of_match, |
1176 | }, | 1175 | }, |
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 30e8608ff050..c8fd94133ecd 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c | |||
@@ -1645,7 +1645,6 @@ static struct platform_driver axienet_of_driver = { | |||
1645 | .probe = axienet_of_probe, | 1645 | .probe = axienet_of_probe, |
1646 | .remove = axienet_of_remove, | 1646 | .remove = axienet_of_remove, |
1647 | .driver = { | 1647 | .driver = { |
1648 | .owner = THIS_MODULE, | ||
1649 | .name = "xilinx_axienet", | 1648 | .name = "xilinx_axienet", |
1650 | .of_match_table = axienet_of_match, | 1649 | .of_match_table = axienet_of_match, |
1651 | }, | 1650 | }, |
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 782bb9373cd8..28dbbdc393eb 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -1245,7 +1245,6 @@ MODULE_DEVICE_TABLE(of, xemaclite_of_match); | |||
1245 | static struct platform_driver xemaclite_of_driver = { | 1245 | static struct platform_driver xemaclite_of_driver = { |
1246 | .driver = { | 1246 | .driver = { |
1247 | .name = DRIVER_NAME, | 1247 | .name = DRIVER_NAME, |
1248 | .owner = THIS_MODULE, | ||
1249 | .of_match_table = xemaclite_of_match, | 1248 | .of_match_table = xemaclite_of_match, |
1250 | }, | 1249 | }, |
1251 | .probe = xemaclite_of_probe, | 1250 | .probe = xemaclite_of_probe, |