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>
This commit is contained in:
committed by
Joe Hershberger
parent
07763ac928
commit
1bcabd7921
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user