]> git.baikalelectronics.ru Git - kernel.git/commit
net: davicom: Fix regulator not turned off on failed probe
authorPaul Cercueil <paul@crapouillou.net>
Sun, 7 Mar 2021 13:17:47 +0000 (13:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2021 20:01:58 +0000 (12:01 -0800)
commit9bb0f4f1b2ad975c76747309f4ba3043afe4d610
treef31ab58ed266dc600b583e5c68a7d9c67273c6f7
parent41976d4c70601d3a8b944c1de26c88353b0448cc
net: davicom: Fix regulator not turned off on failed probe

When the probe fails or requests to be defered, we must disable the
regulator that was previously enabled.

Fixes: 47d1f5beb263 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c