net: lpc_eth: avoid resetting twice
__lpc_eth_shutdown is called after __lpc_eth_reset but it is already calling __lpc_eth_reset. Avoid resetting the IP twice. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f233809aa
commit
c23936fad7
@ -1356,9 +1356,6 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
|
||||
if (!is_valid_ether_addr(ndev->dev_addr))
|
||||
eth_hw_addr_random(ndev);
|
||||
|
||||
/* Reset the ethernet controller */
|
||||
__lpc_eth_reset(pldat);
|
||||
|
||||
/* then shut everything down to save power */
|
||||
__lpc_eth_shutdown(pldat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user