aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c15
-rw-r--r--drivers/net/ethernet/amd/sunlance.c15
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};
1342MODULE_ALIAS("platform:au1000-eth");
1343
1344
1345static int __init au1000_init_module(void)
1346{
1347 return platform_driver_register(&au1000_eth_driver);
1348}
1349 1342
1350static void __exit au1000_exit_module(void) 1343module_platform_driver(au1000_eth_driver);
1351{
1352 platform_driver_unregister(&au1000_eth_driver);
1353}
1354 1344
1355module_init(au1000_init_module); 1345MODULE_ALIAS("platform:au1000-eth");
1356module_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 1543module_platform_driver(sunlance_sbus_driver);
1544/* Find all the lance cards on the system and initialize them */
1545static int __init sparc_lance_init(void)
1546{
1547 return platform_driver_register(&sunlance_sbus_driver);
1548}
1549
1550static void __exit sparc_lance_exit(void)
1551{
1552 platform_driver_unregister(&sunlance_sbus_driver);
1553}
1554
1555module_init(sparc_lance_init);
1556module_exit(sparc_lance_exit);