diff options
Diffstat (limited to 'drivers/net/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index cbe2404223d7..dfeea96f681a 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -1581,10 +1581,13 @@ static int stmmac_mac_device_setup(struct net_device *dev) | |||
1581 | 1581 | ||
1582 | struct mac_device_info *device; | 1582 | struct mac_device_info *device; |
1583 | 1583 | ||
1584 | if (priv->is_gmac) | 1584 | if (priv->is_gmac) { |
1585 | device = dwmac1000_setup(ioaddr); | 1585 | device = dwmac1000_setup(ioaddr); |
1586 | else | 1586 | device->desc = &enh_desc_ops; |
1587 | } else { | ||
1587 | device = dwmac100_setup(ioaddr); | 1588 | device = dwmac100_setup(ioaddr); |
1589 | device->desc = &ndesc_ops; | ||
1590 | } | ||
1588 | 1591 | ||
1589 | if (!device) | 1592 | if (!device) |
1590 | return -ENOMEM; | 1593 | return -ENOMEM; |