Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ti: icssg-prueth: Remove duplicate cleanup calls in emac_ndo_stop()

Remove the duplicate calls to prueth_emac_stop() and
prueth_cleanup_tx_chns() in emac_ndo_stop().

Signed-off-by: Diogo Ivo <diogo.ivo@siemens.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Diogo Ivo and committed by
David S. Miller
1d085e9c 21bd52ea

-4
-4
drivers/net/ethernet/ti/icssg/icssg_prueth.c
··· 1489 1489 /* Destroying the queued work in ndo_stop() */ 1490 1490 cancel_delayed_work_sync(&emac->stats_work); 1491 1491 1492 - /* stop PRUs */ 1493 - prueth_emac_stop(emac); 1494 - 1495 1492 if (prueth->emacs_initialized == 1) 1496 1493 icss_iep_exit(emac->iep); 1497 1494 ··· 1499 1502 1500 1503 free_irq(emac->rx_chns.irq[rx_flow], emac); 1501 1504 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); 1502 - prueth_cleanup_tx_chns(emac); 1503 1505 1504 1506 prueth_cleanup_rx_chns(emac, &emac->rx_chns, max_rx_flows); 1505 1507 prueth_cleanup_tx_chns(emac);