mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-12 11:18:26 +07:00
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>
This commit is contained in:
commit
d36db83bac
@ -375,18 +375,7 @@ static struct mdio_driver b53_mdio_driver = {
|
|||||||
.of_match_table = b53_of_match,
|
.of_match_table = b53_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
mdio_module_driver(b53_mdio_driver);
|
||||||
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);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("B53 MDIO access driver");
|
MODULE_DESCRIPTION("B53 MDIO access driver");
|
||||||
MODULE_LICENSE("Dual BSD/GPL");
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
|
@ -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);
|
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
|
* 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
|
* init/exit. Each module may only use this macro once, and calling it
|
||||||
|
Loading…
Reference in New Issue
Block a user