diff options
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/au1000_eth.c | 15 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/sunlance.c | 15 |
2 files changed, 3 insertions, 27 deletions
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c index 4865ff14bebf..cc9262be69c8 100644 --- a/drivers/net/ethernet/amd/au1000_eth.c +++ b/drivers/net/ethernet/amd/au1000_eth.c | |||
@@ -1339,18 +1339,7 @@ static struct platform_driver au1000_eth_driver = { | |||
1339 | .owner = THIS_MODULE, | 1339 | .owner = THIS_MODULE, |
1340 | }, | 1340 | }, |
1341 | }; | 1341 | }; |
1342 | MODULE_ALIAS("platform:au1000-eth"); | ||
1343 | |||
1344 | |||
1345 | static int __init au1000_init_module(void) | ||
1346 | { | ||
1347 | return platform_driver_register(&au1000_eth_driver); | ||
1348 | } | ||
1349 | 1342 | ||
1350 | static void __exit au1000_exit_module(void) | 1343 | module_platform_driver(au1000_eth_driver); |
1351 | { | ||
1352 | platform_driver_unregister(&au1000_eth_driver); | ||
1353 | } | ||
1354 | 1344 | ||
1355 | module_init(au1000_init_module); | 1345 | MODULE_ALIAS("platform:au1000-eth"); |
1356 | module_exit(au1000_exit_module); | ||
diff --git a/drivers/net/ethernet/amd/sunlance.c b/drivers/net/ethernet/amd/sunlance.c index 8fda457f94cf..7ea16d32a5f5 100644 --- a/drivers/net/ethernet/amd/sunlance.c +++ b/drivers/net/ethernet/amd/sunlance.c | |||
@@ -1540,17 +1540,4 @@ static struct platform_driver sunlance_sbus_driver = { | |||
1540 | .remove = __devexit_p(sunlance_sbus_remove), | 1540 | .remove = __devexit_p(sunlance_sbus_remove), |
1541 | }; | 1541 | }; |
1542 | 1542 | ||
1543 | 1543 | module_platform_driver(sunlance_sbus_driver); | |
1544 | /* Find all the lance cards on the system and initialize them */ | ||
1545 | static int __init sparc_lance_init(void) | ||
1546 | { | ||
1547 | return platform_driver_register(&sunlance_sbus_driver); | ||
1548 | } | ||
1549 | |||
1550 | static void __exit sparc_lance_exit(void) | ||
1551 | { | ||
1552 | platform_driver_unregister(&sunlance_sbus_driver); | ||
1553 | } | ||
1554 | |||
1555 | module_init(sparc_lance_init); | ||
1556 | module_exit(sparc_lance_exit); | ||