aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-04-13 19:13:02 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-05-22 02:10:40 -0400
commit4018294b53d1dae026880e45f174c1cc63b5d435 (patch)
tree6db3538eaf91b653381720a6d92f4f15634a93d0 /drivers/net
parent597b9d1e44e9ba69f2454a5318bbe7a6d5e6930a (diff)
of: Remove duplicate fields from of_platform_driver
.name, .match_table and .owner are duplicated in both of_platform_driver and device_driver. This patch is a removes the extra copies from struct of_platform_driver and converts all users to the device_driver members. This patch is a pretty mechanical change. The usage model doesn't change and if any drivers have been missed, or if anything has been fixed up incorrectly, then it will fail with a compile time error, and the fixup will be trivial. This patch looks big and scary because it touches so many files, but it should be pretty safe. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/can/mscan/mpc5xxx_can.c8
-rw-r--r--drivers/net/can/sja1000/sja1000_of_platform.c8
-rw-r--r--drivers/net/ehea/ehea_main.c7
-rw-r--r--drivers/net/fec_mpc52xx.c8
-rw-r--r--drivers/net/fec_mpc52xx_phy.c7
-rw-r--r--drivers/net/fs_enet/fs_enet-main.c7
-rw-r--r--drivers/net/fs_enet/mii-bitbang.c7
-rw-r--r--drivers/net/fs_enet/mii-fec.c7
-rw-r--r--drivers/net/fsl_pq_mdio.c7
-rw-r--r--drivers/net/gianfar.c10
-rw-r--r--drivers/net/ibm_newemac/core.c8
-rw-r--r--drivers/net/ibm_newemac/mal.c8
-rw-r--r--drivers/net/ibm_newemac/rgmii.c8
-rw-r--r--drivers/net/ibm_newemac/tah.c8
-rw-r--r--drivers/net/ibm_newemac/zmii.c8
-rw-r--r--drivers/net/ll_temac_main.c2
-rw-r--r--drivers/net/myri_sbus.c7
-rw-r--r--drivers/net/niu.c7
-rw-r--r--drivers/net/phy/mdio-gpio.c7
-rw-r--r--drivers/net/sunbmac.c7
-rw-r--r--drivers/net/sunhme.c7
-rw-r--r--drivers/net/sunlance.c7
-rw-r--r--drivers/net/sunqe.c7
-rw-r--r--drivers/net/ucc_geth.c7
-rw-r--r--drivers/net/xilinx_emaclite.c7
25 files changed, 122 insertions, 59 deletions
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c
index 03e7c48465a2..2120784f8db4 100644
--- a/drivers/net/can/mscan/mpc5xxx_can.c
+++ b/drivers/net/can/mscan/mpc5xxx_can.c
@@ -393,15 +393,17 @@ static struct of_device_id __devinitdata mpc5xxx_can_table[] = {
393}; 393};
394 394
395static struct of_platform_driver mpc5xxx_can_driver = { 395static struct of_platform_driver mpc5xxx_can_driver = {
396 .owner = THIS_MODULE, 396 .driver = {
397 .name = "mpc5xxx_can", 397 .name = "mpc5xxx_can",
398 .owner = THIS_MODULE,
399 .of_match_table = mpc5xxx_can_table,
400 },
398 .probe = mpc5xxx_can_probe, 401 .probe = mpc5xxx_can_probe,
399 .remove = __devexit_p(mpc5xxx_can_remove), 402 .remove = __devexit_p(mpc5xxx_can_remove),
400#ifdef CONFIG_PM 403#ifdef CONFIG_PM
401 .suspend = mpc5xxx_can_suspend, 404 .suspend = mpc5xxx_can_suspend,
402 .resume = mpc5xxx_can_resume, 405 .resume = mpc5xxx_can_resume,
403#endif 406#endif
404 .match_table = mpc5xxx_can_table,
405}; 407};
406 408
407static int __init mpc5xxx_can_init(void) 409static int __init mpc5xxx_can_init(void)
diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c
index dc5f20cdf93c..158b76ebf3ea 100644
--- a/drivers/net/can/sja1000/sja1000_of_platform.c
+++ b/drivers/net/can/sja1000/sja1000_of_platform.c
@@ -216,11 +216,13 @@ static struct of_device_id __devinitdata sja1000_ofp_table[] = {
216MODULE_DEVICE_TABLE(of, sja1000_ofp_table); 216MODULE_DEVICE_TABLE(of, sja1000_ofp_table);
217 217
218static struct of_platform_driver sja1000_ofp_driver = { 218static struct of_platform_driver sja1000_ofp_driver = {
219 .owner = THIS_MODULE, 219 .driver = {
220 .name = DRV_NAME, 220 .owner = THIS_MODULE,
221 .name = DRV_NAME,
222 .of_match_table = sja1000_ofp_table,
223 },
221 .probe = sja1000_ofp_probe, 224 .probe = sja1000_ofp_probe,
222 .remove = __devexit_p(sja1000_ofp_remove), 225 .remove = __devexit_p(sja1000_ofp_remove),
223 .match_table = sja1000_ofp_table,
224}; 226};
225 227
226static int __init sja1000_ofp_init(void) 228static int __init sja1000_ofp_init(void)
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 59dac232006c..b23173864c60 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -122,8 +122,11 @@ static struct of_device_id ehea_device_table[] = {
122MODULE_DEVICE_TABLE(of, ehea_device_table); 122MODULE_DEVICE_TABLE(of, ehea_device_table);
123 123
124static struct of_platform_driver ehea_driver = { 124static struct of_platform_driver ehea_driver = {
125 .name = "ehea", 125 .driver = {
126 .match_table = ehea_device_table, 126 .name = "ehea",
127 .owner = THIS_MODULE,
128 .of_match_table = ehea_device_table,
129 },
127 .probe = ehea_probe_adapter, 130 .probe = ehea_probe_adapter,
128 .remove = ehea_remove, 131 .remove = ehea_remove,
129}; 132};
diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
index 3342056f8aac..be540b67ea57 100644
--- a/drivers/net/fec_mpc52xx.c
+++ b/drivers/net/fec_mpc52xx.c
@@ -1065,9 +1065,11 @@ static struct of_device_id mpc52xx_fec_match[] = {
1065MODULE_DEVICE_TABLE(of, mpc52xx_fec_match); 1065MODULE_DEVICE_TABLE(of, mpc52xx_fec_match);
1066 1066
1067static struct of_platform_driver mpc52xx_fec_driver = { 1067static struct of_platform_driver mpc52xx_fec_driver = {
1068 .owner = THIS_MODULE, 1068 .driver = {
1069 .name = DRIVER_NAME, 1069 .name = DRIVER_NAME,
1070 .match_table = mpc52xx_fec_match, 1070 .owner = THIS_MODULE,
1071 .of_match_table = mpc52xx_fec_match,
1072 },
1071 .probe = mpc52xx_fec_probe, 1073 .probe = mpc52xx_fec_probe,
1072 .remove = mpc52xx_fec_remove, 1074 .remove = mpc52xx_fec_remove,
1073#ifdef CONFIG_PM 1075#ifdef CONFIG_PM
diff --git a/drivers/net/fec_mpc52xx_phy.c b/drivers/net/fec_mpc52xx_phy.c
index 0d099e5a652d..006f64d9f96a 100644
--- a/drivers/net/fec_mpc52xx_phy.c
+++ b/drivers/net/fec_mpc52xx_phy.c
@@ -159,10 +159,13 @@ static struct of_device_id mpc52xx_fec_mdio_match[] = {
159MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match); 159MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match);
160 160
161struct of_platform_driver mpc52xx_fec_mdio_driver = { 161struct of_platform_driver mpc52xx_fec_mdio_driver = {
162 .name = "mpc5200b-fec-phy", 162 .driver = {
163 .name = "mpc5200b-fec-phy",
164 .owner = THIS_MODULE,
165 .of_match_table = mpc52xx_fec_mdio_match,
166 },
163 .probe = mpc52xx_fec_mdio_probe, 167 .probe = mpc52xx_fec_mdio_probe,
164 .remove = mpc52xx_fec_mdio_remove, 168 .remove = mpc52xx_fec_mdio_remove,
165 .match_table = mpc52xx_fec_mdio_match,
166}; 169};
167 170
168/* let fec driver call it, since this has to be registered before it */ 171/* let fec driver call it, since this has to be registered before it */
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c
index caeb88b67bc6..cae2d16858d1 100644
--- a/drivers/net/fs_enet/fs_enet-main.c
+++ b/drivers/net/fs_enet/fs_enet-main.c
@@ -1158,8 +1158,11 @@ static struct of_device_id fs_enet_match[] = {
1158MODULE_DEVICE_TABLE(of, fs_enet_match); 1158MODULE_DEVICE_TABLE(of, fs_enet_match);
1159 1159
1160static struct of_platform_driver fs_enet_driver = { 1160static struct of_platform_driver fs_enet_driver = {
1161 .name = "fs_enet", 1161 .driver = {
1162 .match_table = fs_enet_match, 1162 .owner = THIS_MODULE,
1163 .name = "fs_enet",
1164 .of_match_table = fs_enet_match,
1165 },
1163 .probe = fs_enet_probe, 1166 .probe = fs_enet_probe,
1164 .remove = fs_enet_remove, 1167 .remove = fs_enet_remove,
1165}; 1168};
diff --git a/drivers/net/fs_enet/mii-bitbang.c b/drivers/net/fs_enet/mii-bitbang.c
index 24ff9f43a62b..0f90685d3d19 100644
--- a/drivers/net/fs_enet/mii-bitbang.c
+++ b/drivers/net/fs_enet/mii-bitbang.c
@@ -224,8 +224,11 @@ static struct of_device_id fs_enet_mdio_bb_match[] = {
224MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match); 224MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match);
225 225
226static struct of_platform_driver fs_enet_bb_mdio_driver = { 226static struct of_platform_driver fs_enet_bb_mdio_driver = {
227 .name = "fsl-bb-mdio", 227 .driver = {
228 .match_table = fs_enet_mdio_bb_match, 228 .name = "fsl-bb-mdio",
229 .owner = THIS_MODULE,
230 .of_match_table = fs_enet_mdio_bb_match,
231 },
229 .probe = fs_enet_mdio_probe, 232 .probe = fs_enet_mdio_probe,
230 .remove = fs_enet_mdio_remove, 233 .remove = fs_enet_mdio_remove,
231}; 234};
diff --git a/drivers/net/fs_enet/mii-fec.c b/drivers/net/fs_enet/mii-fec.c
index dc862e779c1f..bddffd169b93 100644
--- a/drivers/net/fs_enet/mii-fec.c
+++ b/drivers/net/fs_enet/mii-fec.c
@@ -222,8 +222,11 @@ static struct of_device_id fs_enet_mdio_fec_match[] = {
222MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match); 222MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match);
223 223
224static struct of_platform_driver fs_enet_fec_mdio_driver = { 224static struct of_platform_driver fs_enet_fec_mdio_driver = {
225 .name = "fsl-fec-mdio", 225 .driver = {
226 .match_table = fs_enet_mdio_fec_match, 226 .name = "fsl-fec-mdio",
227 .owner = THIS_MODULE,
228 .of_match_table = fs_enet_mdio_fec_match,
229 },
227 .probe = fs_enet_mdio_probe, 230 .probe = fs_enet_mdio_probe,
228 .remove = fs_enet_mdio_remove, 231 .remove = fs_enet_mdio_remove,
229}; 232};
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c
index 72489a213bf7..16508535720a 100644
--- a/drivers/net/fsl_pq_mdio.c
+++ b/drivers/net/fsl_pq_mdio.c
@@ -461,10 +461,13 @@ static struct of_device_id fsl_pq_mdio_match[] = {
461MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match); 461MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match);
462 462
463static struct of_platform_driver fsl_pq_mdio_driver = { 463static struct of_platform_driver fsl_pq_mdio_driver = {
464 .name = "fsl-pq_mdio", 464 .driver = {
465 .name = "fsl-pq_mdio",
466 .owner = THIS_MODULE,
467 .of_match_table = fsl_pq_mdio_match,
468 },
465 .probe = fsl_pq_mdio_probe, 469 .probe = fsl_pq_mdio_probe,
466 .remove = fsl_pq_mdio_remove, 470 .remove = fsl_pq_mdio_remove,
467 .match_table = fsl_pq_mdio_match,
468}; 471};
469 472
470int __init fsl_pq_mdio_init(void) 473int __init fsl_pq_mdio_init(void)
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index b71bba91064c..c3b292a31328 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -3054,14 +3054,16 @@ MODULE_DEVICE_TABLE(of, gfar_match);
3054 3054
3055/* Structure for a device driver */ 3055/* Structure for a device driver */
3056static struct of_platform_driver gfar_driver = { 3056static struct of_platform_driver gfar_driver = {
3057 .name = "fsl-gianfar", 3057 .driver = {
3058 .match_table = gfar_match, 3058 .name = "fsl-gianfar",
3059 3059 .owner = THIS_MODULE,
3060 .pm = GFAR_PM_OPS,
3061 .of_match_table = gfar_match,
3062 },
3060 .probe = gfar_probe, 3063 .probe = gfar_probe,
3061 .remove = gfar_remove, 3064 .remove = gfar_remove,
3062 .suspend = gfar_legacy_suspend, 3065 .suspend = gfar_legacy_suspend,
3063 .resume = gfar_legacy_resume, 3066 .resume = gfar_legacy_resume,
3064 .driver.pm = GFAR_PM_OPS,
3065}; 3067};
3066 3068
3067static int __init gfar_init(void) 3069static int __init gfar_init(void)
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c
index cda2ba891344..f8c36a5eb4d7 100644
--- a/drivers/net/ibm_newemac/core.c
+++ b/drivers/net/ibm_newemac/core.c
@@ -2996,9 +2996,11 @@ static struct of_device_id emac_match[] =
2996MODULE_DEVICE_TABLE(of, emac_match); 2996MODULE_DEVICE_TABLE(of, emac_match);
2997 2997
2998static struct of_platform_driver emac_driver = { 2998static struct of_platform_driver emac_driver = {
2999 .name = "emac", 2999 .driver = {
3000 .match_table = emac_match, 3000 .name = "emac",
3001 3001 .owner = THIS_MODULE,
3002 .of_match_table = emac_match,
3003 },
3002 .probe = emac_probe, 3004 .probe = emac_probe,
3003 .remove = emac_remove, 3005 .remove = emac_remove,
3004}; 3006};
diff --git a/drivers/net/ibm_newemac/mal.c b/drivers/net/ibm_newemac/mal.c
index aba17947e208..fcff9e0bd382 100644
--- a/drivers/net/ibm_newemac/mal.c
+++ b/drivers/net/ibm_newemac/mal.c
@@ -790,9 +790,11 @@ static struct of_device_id mal_platform_match[] =
790}; 790};
791 791
792static struct of_platform_driver mal_of_driver = { 792static struct of_platform_driver mal_of_driver = {
793 .name = "mcmal", 793 .driver = {
794 .match_table = mal_platform_match, 794 .name = "mcmal",
795 795 .owner = THIS_MODULE,
796 .of_match_table = mal_platform_match,
797 },
796 .probe = mal_probe, 798 .probe = mal_probe,
797 .remove = mal_remove, 799 .remove = mal_remove,
798}; 800};
diff --git a/drivers/net/ibm_newemac/rgmii.c b/drivers/net/ibm_newemac/rgmii.c
index 6ab630a79e31..108919bcdf13 100644
--- a/drivers/net/ibm_newemac/rgmii.c
+++ b/drivers/net/ibm_newemac/rgmii.c
@@ -319,9 +319,11 @@ static struct of_device_id rgmii_match[] =
319}; 319};
320 320
321static struct of_platform_driver rgmii_driver = { 321static struct of_platform_driver rgmii_driver = {
322 .name = "emac-rgmii", 322 .driver = {
323 .match_table = rgmii_match, 323 .name = "emac-rgmii",
324 324 .owner = THIS_MODULE,
325 .of_match_table = rgmii_match,
326 },
325 .probe = rgmii_probe, 327 .probe = rgmii_probe,
326 .remove = rgmii_remove, 328 .remove = rgmii_remove,
327}; 329};
diff --git a/drivers/net/ibm_newemac/tah.c b/drivers/net/ibm_newemac/tah.c
index 4f64b00dd5e8..044637144c43 100644
--- a/drivers/net/ibm_newemac/tah.c
+++ b/drivers/net/ibm_newemac/tah.c
@@ -166,9 +166,11 @@ static struct of_device_id tah_match[] =
166}; 166};
167 167
168static struct of_platform_driver tah_driver = { 168static struct of_platform_driver tah_driver = {
169 .name = "emac-tah", 169 .driver = {
170 .match_table = tah_match, 170 .name = "emac-tah",
171 171 .owner = THIS_MODULE,
172 .of_match_table = tah_match,
173 },
172 .probe = tah_probe, 174 .probe = tah_probe,
173 .remove = tah_remove, 175 .remove = tah_remove,
174}; 176};
diff --git a/drivers/net/ibm_newemac/zmii.c b/drivers/net/ibm_newemac/zmii.c
index b4fa823ed201..046dcd069c45 100644
--- a/drivers/net/ibm_newemac/zmii.c
+++ b/drivers/net/ibm_newemac/zmii.c
@@ -313,9 +313,11 @@ static struct of_device_id zmii_match[] =
313}; 313};
314 314
315static struct of_platform_driver zmii_driver = { 315static struct of_platform_driver zmii_driver = {
316 .name = "emac-zmii", 316 .driver = {
317 .match_table = zmii_match, 317 .name = "emac-zmii",
318 318 .owner = THIS_MODULE,
319 .of_match_table = zmii_match,
320 },
319 .probe = zmii_probe, 321 .probe = zmii_probe,
320 .remove = zmii_remove, 322 .remove = zmii_remove,
321}; 323};
diff --git a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c
index 9c7395c10e44..dc318330ec79 100644
--- a/drivers/net/ll_temac_main.c
+++ b/drivers/net/ll_temac_main.c
@@ -955,12 +955,12 @@ static struct of_device_id temac_of_match[] __devinitdata = {
955MODULE_DEVICE_TABLE(of, temac_of_match); 955MODULE_DEVICE_TABLE(of, temac_of_match);
956 956
957static struct of_platform_driver temac_of_driver = { 957static struct of_platform_driver temac_of_driver = {
958 .match_table = temac_of_match,
959 .probe = temac_of_probe, 958 .probe = temac_of_probe,
960 .remove = __devexit_p(temac_of_remove), 959 .remove = __devexit_p(temac_of_remove),
961 .driver = { 960 .driver = {
962 .owner = THIS_MODULE, 961 .owner = THIS_MODULE,
963 .name = "xilinx_temac", 962 .name = "xilinx_temac",
963 .of_match_table = temac_of_match,
964 }, 964 },
965}; 965};
966 966
diff --git a/drivers/net/myri_sbus.c b/drivers/net/myri_sbus.c
index e21439f1e775..77835df4d013 100644
--- a/drivers/net/myri_sbus.c
+++ b/drivers/net/myri_sbus.c
@@ -1161,8 +1161,11 @@ static const struct of_device_id myri_sbus_match[] = {
1161MODULE_DEVICE_TABLE(of, myri_sbus_match); 1161MODULE_DEVICE_TABLE(of, myri_sbus_match);
1162 1162
1163static struct of_platform_driver myri_sbus_driver = { 1163static struct of_platform_driver myri_sbus_driver = {
1164 .name = "myri", 1164 .driver = {
1165 .match_table = myri_sbus_match, 1165 .name = "myri",
1166 .owner = THIS_MODULE,
1167 .of_match_table = myri_sbus_match,
1168 },
1166 .probe = myri_sbus_probe, 1169 .probe = myri_sbus_probe,
1167 .remove = __devexit_p(myri_sbus_remove), 1170 .remove = __devexit_p(myri_sbus_remove),
1168}; 1171};
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 9c1604c04450..406d72c4eb71 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -10207,8 +10207,11 @@ static const struct of_device_id niu_match[] = {
10207MODULE_DEVICE_TABLE(of, niu_match); 10207MODULE_DEVICE_TABLE(of, niu_match);
10208 10208
10209static struct of_platform_driver niu_of_driver = { 10209static struct of_platform_driver niu_of_driver = {
10210 .name = "niu", 10210 .driver = {
10211 .match_table = niu_match, 10211 .name = "niu",
10212 .owner = THIS_MODULE,
10213 .of_match_table = niu_match,
10214 },
10212 .probe = niu_of_probe, 10215 .probe = niu_of_probe,
10213 .remove = __devexit_p(niu_of_remove), 10216 .remove = __devexit_p(niu_of_remove),
10214}; 10217};
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 641973ca2417..fc5fef2a8175 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -241,8 +241,11 @@ static struct of_device_id mdio_ofgpio_match[] = {
241MODULE_DEVICE_TABLE(of, mdio_ofgpio_match); 241MODULE_DEVICE_TABLE(of, mdio_ofgpio_match);
242 242
243static struct of_platform_driver mdio_ofgpio_driver = { 243static struct of_platform_driver mdio_ofgpio_driver = {
244 .name = "mdio-gpio", 244 .driver = {
245 .match_table = mdio_ofgpio_match, 245 .name = "mdio-gpio",
246 .owner = THIS_MODULE,
247 .of_match_table = mdio_ofgpio_match,
248 },
246 .probe = mdio_ofgpio_probe, 249 .probe = mdio_ofgpio_probe,
247 .remove = __devexit_p(mdio_ofgpio_remove), 250 .remove = __devexit_p(mdio_ofgpio_remove),
248}; 251};
diff --git a/drivers/net/sunbmac.c b/drivers/net/sunbmac.c
index bd286ec5abd9..5f0ec390d6fc 100644
--- a/drivers/net/sunbmac.c
+++ b/drivers/net/sunbmac.c
@@ -1292,8 +1292,11 @@ static const struct of_device_id bigmac_sbus_match[] = {
1292MODULE_DEVICE_TABLE(of, bigmac_sbus_match); 1292MODULE_DEVICE_TABLE(of, bigmac_sbus_match);
1293 1293
1294static struct of_platform_driver bigmac_sbus_driver = { 1294static struct of_platform_driver bigmac_sbus_driver = {
1295 .name = "sunbmac", 1295 .driver = {
1296 .match_table = bigmac_sbus_match, 1296 .name = "sunbmac",
1297 .owner = THIS_MODULE,
1298 .of_match_table = bigmac_sbus_match,
1299 },
1297 .probe = bigmac_sbus_probe, 1300 .probe = bigmac_sbus_probe,
1298 .remove = __devexit_p(bigmac_sbus_remove), 1301 .remove = __devexit_p(bigmac_sbus_remove),
1299}; 1302};
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index c6463f71c916..ad2cfc5bb9e1 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -3295,8 +3295,11 @@ static const struct of_device_id hme_sbus_match[] = {
3295MODULE_DEVICE_TABLE(of, hme_sbus_match); 3295MODULE_DEVICE_TABLE(of, hme_sbus_match);
3296 3296
3297static struct of_platform_driver hme_sbus_driver = { 3297static struct of_platform_driver hme_sbus_driver = {
3298 .name = "hme", 3298 .driver = {
3299 .match_table = hme_sbus_match, 3299 .name = "hme",
3300 .owner = THIS_MODULE,
3301 .of_match_table = hme_sbus_match,
3302 },
3300 .probe = hme_sbus_probe, 3303 .probe = hme_sbus_probe,
3301 .remove = __devexit_p(hme_sbus_remove), 3304 .remove = __devexit_p(hme_sbus_remove),
3302}; 3305};
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c
index 28afc86e0694..0fc014ef9e98 100644
--- a/drivers/net/sunlance.c
+++ b/drivers/net/sunlance.c
@@ -1546,8 +1546,11 @@ static const struct of_device_id sunlance_sbus_match[] = {
1546MODULE_DEVICE_TABLE(of, sunlance_sbus_match); 1546MODULE_DEVICE_TABLE(of, sunlance_sbus_match);
1547 1547
1548static struct of_platform_driver sunlance_sbus_driver = { 1548static struct of_platform_driver sunlance_sbus_driver = {
1549 .name = "sunlance", 1549 .driver = {
1550 .match_table = sunlance_sbus_match, 1550 .name = "sunlance",
1551 .owner = THIS_MODULE,
1552 .of_match_table = sunlance_sbus_match,
1553 },
1551 .probe = sunlance_sbus_probe, 1554 .probe = sunlance_sbus_probe,
1552 .remove = __devexit_p(sunlance_sbus_remove), 1555 .remove = __devexit_p(sunlance_sbus_remove),
1553}; 1556};
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c
index 9864f4fa69d5..8fe86b287e51 100644
--- a/drivers/net/sunqe.c
+++ b/drivers/net/sunqe.c
@@ -978,8 +978,11 @@ static const struct of_device_id qec_sbus_match[] = {
978MODULE_DEVICE_TABLE(of, qec_sbus_match); 978MODULE_DEVICE_TABLE(of, qec_sbus_match);
979 979
980static struct of_platform_driver qec_sbus_driver = { 980static struct of_platform_driver qec_sbus_driver = {
981 .name = "qec", 981 .driver = {
982 .match_table = qec_sbus_match, 982 .name = "qec",
983 .owner = THIS_MODULE,
984 .of_match_table = qec_sbus_match,
985 },
983 .probe = qec_sbus_probe, 986 .probe = qec_sbus_probe,
984 .remove = __devexit_p(qec_sbus_remove), 987 .remove = __devexit_p(qec_sbus_remove),
985}; 988};
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 88ebfc976735..0ab51037bf88 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -3965,8 +3965,11 @@ static struct of_device_id ucc_geth_match[] = {
3965MODULE_DEVICE_TABLE(of, ucc_geth_match); 3965MODULE_DEVICE_TABLE(of, ucc_geth_match);
3966 3966
3967static struct of_platform_driver ucc_geth_driver = { 3967static struct of_platform_driver ucc_geth_driver = {
3968 .name = DRV_NAME, 3968 .driver = {
3969 .match_table = ucc_geth_match, 3969 .name = DRV_NAME,
3970 .owner = THIS_MODULE,
3971 .of_match_table = ucc_geth_match,
3972 },
3970 .probe = ucc_geth_probe, 3973 .probe = ucc_geth_probe,
3971 .remove = ucc_geth_remove, 3974 .remove = ucc_geth_remove,
3972 .suspend = ucc_geth_suspend, 3975 .suspend = ucc_geth_suspend,
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c
index 3dd2416db540..67f9237237dd 100644
--- a/drivers/net/xilinx_emaclite.c
+++ b/drivers/net/xilinx_emaclite.c
@@ -1293,8 +1293,11 @@ static struct of_device_id xemaclite_of_match[] __devinitdata = {
1293MODULE_DEVICE_TABLE(of, xemaclite_of_match); 1293MODULE_DEVICE_TABLE(of, xemaclite_of_match);
1294 1294
1295static struct of_platform_driver xemaclite_of_driver = { 1295static struct of_platform_driver xemaclite_of_driver = {
1296 .name = DRIVER_NAME, 1296 .driver = {
1297 .match_table = xemaclite_of_match, 1297 .name = DRIVER_NAME,
1298 .owner = THIS_MODULE,
1299 .of_match_table = xemaclite_of_match,
1300 },
1298 .probe = xemaclite_of_probe, 1301 .probe = xemaclite_of_probe,
1299 .remove = __devexit_p(xemaclite_of_remove), 1302 .remove = __devexit_p(xemaclite_of_remove),
1300}; 1303};