diff options
author | Tom Rini <trini@konsulko.com> | 2022-11-27 10:25:16 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-07 16:04:17 -0500 |
commit | c00e9467bc0f8c5213186219838b5451fbdc3002 (patch) | |
tree | 6b1b4ed9d75de47ce203db17db020a46716b8ea6 /drivers/net | |
parent | 047a086fa3a4670f189eb80888f566d304a4e088 (diff) |
net: mcfmii: Remove non-DM_ETH code
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mcfmii.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index e2c8f41876e..48dd558405c 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -85,11 +85,7 @@ void mii_reset(fec_info_t *info) /* 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; @@ -97,11 +93,7 @@ uint mii_send(uint mii_cmd) /* 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; @@ -202,11 +194,7 @@ int mii_discover_phy(fec_info_t *info) __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; @@ -215,11 +203,7 @@ __weak void mii_init(void) /* 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; |