net: mdio: Add mdio_free() and mdio_unregister() API
Currently there is no API to uninitialize mdio. Add two APIs for this. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
committed by
Joe Hershberger
parent
17ecfa9b45
commit
cb6baca77b
@@ -59,7 +59,9 @@ struct phy_device *mdio_phydev_for_ethname(const char *devname);
|
||||
void miiphy_listdev(void);
|
||||
|
||||
struct mii_dev *mdio_alloc(void);
|
||||
void mdio_free(struct mii_dev *bus);
|
||||
int mdio_register(struct mii_dev *bus);
|
||||
int mdio_unregister(struct mii_dev *bus);
|
||||
void mdio_list_devices(void);
|
||||
|
||||
#ifdef CONFIG_BITBANGMII
|
||||
|
||||
Reference in New Issue
Block a user