Jelajahi Sumber

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>
Michal Simek 11 tahun lalu
induk
melakukan
fdd42e4400

+ 0 - 1
drivers/net/ethernet/xilinx/ll_temac_main.c

@@ -1170,7 +1170,6 @@ static struct platform_driver temac_of_driver = {
 	.probe = temac_of_probe,
 	.probe = temac_of_probe,
 	.remove = temac_of_remove,
 	.remove = temac_of_remove,
 	.driver = {
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "xilinx_temac",
 		.name = "xilinx_temac",
 		.of_match_table = temac_of_match,
 		.of_match_table = temac_of_match,
 	},
 	},

+ 0 - 1
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

@@ -1645,7 +1645,6 @@ static struct platform_driver axienet_of_driver = {
 	.probe = axienet_of_probe,
 	.probe = axienet_of_probe,
 	.remove = axienet_of_remove,
 	.remove = axienet_of_remove,
 	.driver = {
 	.driver = {
-		 .owner = THIS_MODULE,
 		 .name = "xilinx_axienet",
 		 .name = "xilinx_axienet",
 		 .of_match_table = axienet_of_match,
 		 .of_match_table = axienet_of_match,
 	},
 	},

+ 0 - 1
drivers/net/ethernet/xilinx/xilinx_emaclite.c

@@ -1245,7 +1245,6 @@ MODULE_DEVICE_TABLE(of, xemaclite_of_match);
 static struct platform_driver xemaclite_of_driver = {
 static struct platform_driver xemaclite_of_driver = {
 	.driver = {
 	.driver = {
 		.name = DRIVER_NAME,
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = xemaclite_of_match,
 		.of_match_table = xemaclite_of_match,
 	},
 	},
 	.probe		= xemaclite_of_probe,
 	.probe		= xemaclite_of_probe,