diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-27 11:44:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-29 00:25:05 -0500 |
commit | db62f684deeb291ab2533b99843d5df9a36b1f19 (patch) | |
tree | 995a648ecfd7374e546a2945ba6328ea2432d431 /drivers/net/ethernet/amd/au1000_eth.c | |
parent | 871d33725545ca2e402b4526f38f89d041ba930f (diff) |
net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver()
This patch converts the drivers in drivers/net/ethernet/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
Cc: Vitaly Bordug <vbordug@ru.mvista.com>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Jiri Pirko <jpirko@redhat.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Tobias Klauser <tklauser@distanz.ch>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Richard Cochran <richard.cochran@omicron.at>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Sebastian Poehn <sebastian.poehn@belden.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/au1000_eth.c')
-rw-r--r-- | drivers/net/ethernet/amd/au1000_eth.c | 15 |
1 files changed, 2 insertions, 13 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); | ||