diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-19 21:41:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 13:25:37 -0400 |
commit | 9fad0c941a4f72becedd52db043506bf3968dae2 (patch) | |
tree | 7705bd73234ae5b7cbdb5d6b61c80befc5c1fb77 /drivers/net/phy/mdio-octeon.c | |
parent | f8e5fc8c203fd7fe9fe17e1376464ece0bc64829 (diff) |
net: mdio-octeon: Use module_platform_driver()
module_platform_driver macro removes some boilerplate and
simplifies the code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: David Daney <ddaney@caviumnetworks.com>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio-octeon.c')
-rw-r--r-- | drivers/net/phy/mdio-octeon.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c index 09297fe05ae5..c2c878d496ad 100644 --- a/drivers/net/phy/mdio-octeon.c +++ b/drivers/net/phy/mdio-octeon.c | |||
@@ -197,18 +197,7 @@ void octeon_mdiobus_force_mod_depencency(void) | |||
197 | } | 197 | } |
198 | EXPORT_SYMBOL(octeon_mdiobus_force_mod_depencency); | 198 | EXPORT_SYMBOL(octeon_mdiobus_force_mod_depencency); |
199 | 199 | ||
200 | static int __init octeon_mdiobus_mod_init(void) | 200 | module_platform_driver(octeon_mdiobus_driver); |
201 | { | ||
202 | return platform_driver_register(&octeon_mdiobus_driver); | ||
203 | } | ||
204 | |||
205 | static void __exit octeon_mdiobus_mod_exit(void) | ||
206 | { | ||
207 | platform_driver_unregister(&octeon_mdiobus_driver); | ||
208 | } | ||
209 | |||
210 | module_init(octeon_mdiobus_mod_init); | ||
211 | module_exit(octeon_mdiobus_mod_exit); | ||
212 | 201 | ||
213 | MODULE_DESCRIPTION(DRV_DESCRIPTION); | 202 | MODULE_DESCRIPTION(DRV_DESCRIPTION); |
214 | MODULE_VERSION(DRV_VERSION); | 203 | MODULE_VERSION(DRV_VERSION); |