Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92cb13fb authored by Felipe Balbi's avatar Felipe Balbi Committed by David S. Miller
Browse files

net: ethernet: ti: cpsw: fix buld break when NET_POLL_CONTROLLER



Commit c03abd84 (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: c03abd84 (net: ethernet: cpsw: don't requests IRQs we don't use)
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f9091f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1632,8 +1632,8 @@ static void cpsw_ndo_poll_controller(struct net_device *ndev)


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