]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 15:10:14 +0000 (16:10 +0100)
commit69b672be94a6a80c6e0a6c2e880c4f612a616652
treebdd32c03a68bea6b12db9d3a245e1cf3874d28ac
parentbdadb5cfa20e561cf1507dd4ee739db8f89b1673
net: davicom: Fix regulator not turned off on failed probe

commit ac88c531a5b38877eba2365a3f28f0c8b513dc33 upstream.

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

Fixes: 7994fe55a4a2 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/davicom/dm9000.c