Skip to content

Commit

Permalink
net: ethernet: ti: cpsw: fix buld break when NET_POLL_CONTROLLER
Browse files Browse the repository at this point in the history
Commit c03abd8 (net: ethernet: cpsw: don't requests IRQs we don't
use) left one build breakage when NET_POLL_CONTROLLER is enabled.

Fix this build break by referring to the correct irqs_table array.

Fixes: c03abd8 (net: ethernet: cpsw: don't requests IRQs we don't use)
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Felipe Balbi authored and David S. Miller committed Jan 19, 2015
1 parent 7f9091f commit 92cb13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1632,8 +1632,8 @@ static void cpsw_ndo_poll_controller(struct net_device *ndev)

cpsw_intr_disable(priv);
cpdma_ctlr_int_ctrl(priv->dma, false);
cpsw_rx_interrupt(priv->irq[0], priv);
cpsw_tx_interrupt(priv->irq[1], priv);
cpsw_rx_interrupt(priv->irqs_table[0], priv);
cpsw_tx_interrupt(priv->irqs_table[1], priv);
cpdma_ctlr_int_ctrl(priv->dma, true);
cpsw_intr_enable(priv);
}
Expand Down

0 comments on commit 92cb13f

Please sign in to comment.