diff options
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 4e2d224dd680..59c43918883e 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -1633,7 +1633,6 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev, | |||
1633 | priv_sl2->irqs_table[i] = priv->irqs_table[i]; | 1633 | priv_sl2->irqs_table[i] = priv->irqs_table[i]; |
1634 | priv_sl2->num_irqs = priv->num_irqs; | 1634 | priv_sl2->num_irqs = priv->num_irqs; |
1635 | } | 1635 | } |
1636 | priv->irq_enabled = true; | ||
1637 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; | 1636 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; |
1638 | 1637 | ||
1639 | ndev->netdev_ops = &cpsw_netdev_ops; | 1638 | ndev->netdev_ops = &cpsw_netdev_ops; |
@@ -1679,6 +1678,7 @@ static int cpsw_probe(struct platform_device *pdev) | |||
1679 | priv->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG); | 1678 | priv->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG); |
1680 | priv->rx_packet_max = max(rx_packet_max, 128); | 1679 | priv->rx_packet_max = max(rx_packet_max, 128); |
1681 | priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL); | 1680 | priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL); |
1681 | priv->irq_enabled = true; | ||
1682 | if (!ndev) { | 1682 | if (!ndev) { |
1683 | pr_err("error allocating cpts\n"); | 1683 | pr_err("error allocating cpts\n"); |
1684 | goto clean_ndev_ret; | 1684 | goto clean_ndev_ret; |