aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-gpio.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-19 21:41:31 -0400
committerDavid S. Miller <davem@davemloft.net>2013-03-20 13:25:37 -0400
commitf8e5fc8c203fd7fe9fe17e1376464ece0bc64829 (patch)
treef6f479579510911dd4604fcc83f7a6fea543c01d /drivers/net/phy/mdio-gpio.c
parent95d158df4459016c98e8dae2229d12be09d79324 (diff)
net: mdio-gpio: Use module_platform_driver()
module_platform_driver macro removes some boilerplate and simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio-gpio.c')
-rw-r--r--drivers/net/phy/mdio-gpio.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 27274986ab56..a47f9236d966 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -235,17 +235,7 @@ static struct platform_driver mdio_gpio_driver = {
235 }, 235 },
236}; 236};
237 237
238static int __init mdio_gpio_init(void) 238module_platform_driver(mdio_gpio_driver);
239{
240 return platform_driver_register(&mdio_gpio_driver);
241}
242module_init(mdio_gpio_init);
243
244static void __exit mdio_gpio_exit(void)
245{
246 platform_driver_unregister(&mdio_gpio_driver);
247}
248module_exit(mdio_gpio_exit);
249 239
250MODULE_ALIAS("platform:mdio-gpio"); 240MODULE_ALIAS("platform:mdio-gpio");
251MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas"); 241MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas");