diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-19 21:41:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 13:25:37 -0400 |
commit | f8e5fc8c203fd7fe9fe17e1376464ece0bc64829 (patch) | |
tree | f6f479579510911dd4604fcc83f7a6fea543c01d /drivers/net/phy/mdio-gpio.c | |
parent | 95d158df4459016c98e8dae2229d12be09d79324 (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.c | 12 |
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 | ||
238 | static int __init mdio_gpio_init(void) | 238 | module_platform_driver(mdio_gpio_driver); |
239 | { | ||
240 | return platform_driver_register(&mdio_gpio_driver); | ||
241 | } | ||
242 | module_init(mdio_gpio_init); | ||
243 | |||
244 | static void __exit mdio_gpio_exit(void) | ||
245 | { | ||
246 | platform_driver_unregister(&mdio_gpio_driver); | ||
247 | } | ||
248 | module_exit(mdio_gpio_exit); | ||
249 | 239 | ||
250 | MODULE_ALIAS("platform:mdio-gpio"); | 240 | MODULE_ALIAS("platform:mdio-gpio"); |
251 | MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas"); | 241 | MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas"); |