summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-07 21:32:37 -0700
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:36 +0800
commit4952501ac3a1ee6138d10e7f331928f0cf7e6fa4 (patch)
treee95ec5deb9da739f731a7d0889f8b7e7e807cce6 /include
parentd675652038004436ce812fbdc53f61a3fee2b187 (diff)
downloadu-boot-imx-4952501ac3a1ee6138d10e7f331928f0cf7e6fa4.zip
u-boot-imx-4952501ac3a1ee6138d10e7f331928f0cf7e6fa4.tar.gz
u-boot-imx-4952501ac3a1ee6138d10e7f331928f0cf7e6fa4.tar.bz2
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> (cherry picked from commit cb6baca77bca0ef999203a7ed73bd123e7da062e)
Diffstat (limited to 'include')
-rw-r--r--include/miiphy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 088797e..af12274 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