aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-27 11:44:17 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-29 00:25:05 -0500
commitdb62f684deeb291ab2533b99843d5df9a36b1f19 (patch)
tree995a648ecfd7374e546a2945ba6328ea2432d431 /drivers/net/ethernet/micrel
parent871d33725545ca2e402b4526f38f89d041ba930f (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/micrel')
-rw-r--r--drivers/net/ethernet/micrel/ks8842.c13
-rw-r--r--drivers/net/ethernet/micrel/ks8851_mll.c13
2 files changed, 2 insertions, 24 deletions
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c
index 4a6ae057e3b1..75ec87a822b8 100644
--- a/drivers/net/ethernet/micrel/ks8842.c
+++ b/drivers/net/ethernet/micrel/ks8842.c
@@ -1264,18 +1264,7 @@ static struct platform_driver ks8842_platform_driver = {
1264 .remove = ks8842_remove, 1264 .remove = ks8842_remove,
1265}; 1265};
1266 1266
1267static int __init ks8842_init(void) 1267module_platform_driver(ks8842_platform_driver);
1268{
1269 return platform_driver_register(&ks8842_platform_driver);
1270}
1271
1272static void __exit ks8842_exit(void)
1273{
1274 platform_driver_unregister(&ks8842_platform_driver);
1275}
1276
1277module_init(ks8842_init);
1278module_exit(ks8842_exit);
1279 1268
1280MODULE_DESCRIPTION("Timberdale KS8842 ethernet driver"); 1269MODULE_DESCRIPTION("Timberdale KS8842 ethernet driver");
1281MODULE_AUTHOR("Mocean Laboratories <info@mocean-labs.com>"); 1270MODULE_AUTHOR("Mocean Laboratories <info@mocean-labs.com>");
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c
index 228c5c0b50de..e58e78e5c930 100644
--- a/drivers/net/ethernet/micrel/ks8851_mll.c
+++ b/drivers/net/ethernet/micrel/ks8851_mll.c
@@ -1658,18 +1658,7 @@ static struct platform_driver ks8851_platform_driver = {
1658 .remove = __devexit_p(ks8851_remove), 1658 .remove = __devexit_p(ks8851_remove),
1659}; 1659};
1660 1660
1661static int __init ks8851_init(void) 1661module_platform_driver(ks8851_platform_driver);
1662{
1663 return platform_driver_register(&ks8851_platform_driver);
1664}
1665
1666static void __exit ks8851_exit(void)
1667{
1668 platform_driver_unregister(&ks8851_platform_driver);
1669}
1670
1671module_init(ks8851_init);
1672module_exit(ks8851_exit);
1673 1662
1674MODULE_DESCRIPTION("KS8851 MLL Network driver"); 1663MODULE_DESCRIPTION("KS8851 MLL Network driver");
1675MODULE_AUTHOR("David Choi <david.choi@micrel.com>"); 1664MODULE_AUTHOR("David Choi <david.choi@micrel.com>");