]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: ethernet: ti: cpsw: fix buld break when NET_POLL_CONTROLLER
authorFelipe Balbi <balbi@ti.com>
Mon, 19 Jan 2015 17:52:36 +0000 (11:52 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2015 19:45:00 +0000 (14:45 -0500)
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 <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 4f508aa782c56a9a414ba15696f8d992bc7a70b1..a1ba3a0c28da50a5cb922fa8d0cb4a81b85a1f7f 100644 (file)
@@ -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);
 }