OSDN Git Service

net: lpc_eth: avoid resetting twice
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 10 Oct 2019 20:46:06 +0000 (22:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2019 18:15:25 +0000 (11:15 -0700)
commitc23936fad79ea2bea749db19b8921bb4dc524905
tree0cb77e24b44db132311eb6e48b4239e02e80a9cf
parent3f233809aa7f00da6b42c695cc20801a2050edd4
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>
drivers/net/ethernet/nxp/lpc_eth.c