From: Felipe Balbi Date: Mon, 19 Jan 2015 17:52:36 +0000 (-0600) Subject: net: ethernet: ti: cpsw: fix buld break when NET_POLL_CONTROLLER X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92cb13fb21c60b3567c7bb7e55be7c38dc6bda38;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: ethernet: ti: cpsw: fix buld break when NET_POLL_CONTROLLER Commit c03abd84634d (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: c03abd84634d (net: ethernet: cpsw: don't requests IRQs we don't use) Reported-by: kbuild test robot Signed-off-by: Felipe Balbi Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 4f508aa782c5..a1ba3a0c28da 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -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); }