diff options
author | David S. Miller <davem@davemloft.net> | 2017-01-24 21:37:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 21:37:51 +0300 |
commit | d36db83bac41e46cb89bd1ef57e049ce80a7433a (patch) | |
tree | 5608fe8c83f20f63e148c034e1116a999ea1145f | |
parent | dd8e01fbffb4237244e0d9d3f7fca80187e070d5 (diff) | |
parent | 8a180cc79debf6302eb0afc819673b44d0fa5b21 (diff) | |
download | linux-d36db83bac41e46cb89bd1ef57e049ce80a7433a.tar.xz |
Merge branch 'mdio_module_driver-misc'
Florian Fainelli says:
====================
net: couple mdio_module_driver changes
Small patch series fixing a comment for mdio_module_driver and
finally utilizing it in b53_mdio.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/b53/b53_mdio.c | 13 | ||||
-rw-r--r-- | include/linux/mdio.h | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/drivers/net/dsa/b53/b53_mdio.c b/drivers/net/dsa/b53/b53_mdio.c index 477a16b5660a..fa7556f5d4fb 100644 --- a/drivers/net/dsa/b53/b53_mdio.c +++ b/drivers/net/dsa/b53/b53_mdio.c @@ -375,18 +375,7 @@ static struct mdio_driver b53_mdio_driver = { .of_match_table = b53_of_match, }, }; - -static int __init b53_mdio_driver_register(void) -{ - return mdio_driver_register(&b53_mdio_driver); -} -module_init(b53_mdio_driver_register); - -static void __exit b53_mdio_driver_unregister(void) -{ - mdio_driver_unregister(&b53_mdio_driver); -} -module_exit(b53_mdio_driver_unregister); +mdio_module_driver(b53_mdio_driver); MODULE_DESCRIPTION("B53 MDIO access driver"); MODULE_LICENSE("Dual BSD/GPL"); diff --git a/include/linux/mdio.h b/include/linux/mdio.h index b6587a4b32e7..55a80d73cfc1 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -265,7 +265,7 @@ bool mdiobus_is_registered_device(struct mii_bus *bus, int addr); struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr); /** - * module_mdio_driver() - Helper macro for registering mdio drivers + * mdio_module_driver() - Helper macro for registering mdio drivers * * Helper macro for MDIO drivers which do not do anything special in module * init/exit. Each module may only use this macro once, and calling it |