netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver
@ 2012-02-17 15:35 Tobias Klauser
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Klauser @ 2012-02-17 15:35 UTC (permalink / raw)
  To: Ariane Keller, Daniel Borkmann, David S. Miller; +Cc: netdev

Follow commit db62f684. Convert the driver to use the
module_platform_driver() macro which makes the code a bit smaller and
simpler.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index a7cf004..2fcbeba 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -1662,18 +1662,7 @@ static struct platform_driver axienet_of_driver = {
 	},
 };
 
-static int __init axienet_init(void)
-{
-	return platform_driver_register(&axienet_of_driver);
-}
-
-static void __exit axienet_exit(void)
-{
-	platform_driver_unregister(&axienet_of_driver);
-}
-
-module_init(axienet_init);
-module_exit(axienet_exit);
+module_platform_driver(axienet_of_driver);
 
 MODULE_DESCRIPTION("Xilinx Axi Ethernet driver");
 MODULE_AUTHOR("Xilinx");
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver
@ 2012-02-17 15:54 Daniel Borkmann
  2012-02-17 21:09 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Borkmann @ 2012-02-17 15:54 UTC (permalink / raw)
  To: Tobias Klauser, David S. Miller; +Cc: Ariane Keller, netdev

Tobias Klauser <tklauser@distanz.ch> wrote:
> Follow commit db62f684. Convert the driver to use the
> module_platform_driver() macro which makes the code a bit smaller and
> simpler.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Acked-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver
  2012-02-17 15:54 [PATCH] net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver Daniel Borkmann
@ 2012-02-17 21:09 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2012-02-17 21:09 UTC (permalink / raw)
  To: danborkmann; +Cc: tklauser, ariane.keller, netdev

From: Daniel Borkmann <danborkmann@iogearbox.net>
Date: Fri, 17 Feb 2012 16:54:02 +0100

> Tobias Klauser <tklauser@distanz.ch> wrote:
>> Follow commit db62f684. Convert the driver to use the
>> module_platform_driver() macro which makes the code a bit smaller and
>> simpler.
>>
>> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> 
> Acked-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-17 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17 15:54 [PATCH] net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver Daniel Borkmann
2012-02-17 21:09 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2012-02-17 15:35 Tobias Klauser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).