diff options
author | Bin Meng | 2015-10-07 21:32:37 -0700 |
---|---|---|
committer | Joe Hershberger | 2015-10-29 14:05:50 -0500 |
commit | cb6baca77bca0ef999203a7ed73bd123e7da062e (patch) | |
tree | 85a5e8d2c44a7b6332fd9b7542d2915527d09755 /include/miiphy.h | |
parent | 17ecfa9b45db7964f6a20cd710a87decd2f2e1f5 (diff) |
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>
Diffstat (limited to 'include/miiphy.h')
-rw-r--r-- | include/miiphy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 088797e4c6c..af12274c81d 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -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 |