summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2018-03-28 15:54:12 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2018-04-13 23:47:37 +0300
commit1bcabd79215ece91ee8f79e768c4886efae182ba (patch)
tree15f5d726a329e5d9fac96b1d28de7ade49cf6a7e /include/netdev.h
parent07763ac9282f8d72c0f1e7d6c863a107997cbc3e (diff)
downloadu-boot-1bcabd79215ece91ee8f79e768c4886efae182ba.tar.xz
net: fec_mxc: simplify fec_get_miibus
No need to provide two prototype for this function. Use ulong for the first parameter, then this function could be shared for DM/non DM case. Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/netdev.h')
-rw-r--r--include/netdev.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/netdev.h b/include/netdev.h
index 86d28ade14..68c6d49cbf 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -117,11 +117,7 @@ static inline int pci_eth_init(bd_t *bis)
return num;
}
-#ifdef CONFIG_DM_ETH
-struct mii_dev *fec_get_miibus(struct udevice *dev, int dev_id);
-#else
-struct mii_dev *fec_get_miibus(uint32_t base_addr, int dev_id);
-#endif
+struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id);
#ifdef CONFIG_PHYLIB
struct phy_device;