Skip to content

Commit

Permalink
net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver
Browse files Browse the repository at this point in the history
Follow commit db62f68. 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Feb 17, 2012
1 parent 95f2054 commit b4a4667
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/net/ethernet/xilinx/xilinx_axienet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b4a4667

Please sign in to comment.