As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.
Signed-off-by: Tom Rini <trini@konsulko.com>
/* send command to phy using mii, wait for result */
uint mii_send(uint mii_cmd)
{
-#ifdef CONFIG_DM_ETH
struct udevice *dev;
-#else
- struct eth_device *dev;
-#endif
fec_info_t *info;
volatile FEC_T *ep;
uint mii_reply;
/* retrieve from register structure */
dev = eth_get_dev();
-#ifdef CONFIG_DM_ETH
info = dev_get_priv(dev);
-#else
- info = dev->priv;
-#endif
ep = (FEC_T *) info->miibase;
__weak void mii_init(void)
{
-#ifdef CONFIG_DM_ETH
struct udevice *dev;
-#else
- struct eth_device *dev;
-#endif
fec_info_t *info;
volatile FEC_T *fecp;
int miispd = 0, i = 0;
/* retrieve from register structure */
dev = eth_get_dev();
-#ifdef CONFIG_DM_ETH
info = dev_get_priv(dev);
-#else
- info = dev->priv;
-#endif
fecp = (FEC_T *) info->miibase;