diff options
Diffstat (limited to 'drivers/net/mcfmii.c')
-rw-r--r-- | drivers/net/mcfmii.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index 393605512d9..ec81320a86d 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -100,7 +100,11 @@ 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; @@ -216,7 +220,11 @@ 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; |