net: davicom: Fix regulator not turned off on driver removal
authorPaul Cercueil <paul@crapouillou.net>
Sun, 7 Mar 2021 13:17:48 +0000 (13:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:15 +0000 (17:06 +0100)
commit4fd0654b8f2129b68203974ddee15f804ec011c2
treef29f910b4a6909243182c1384b74ebce5b80a349
parente334c401f3fc9fdf2321e14a5204d591a0713e7f
net: davicom: Fix regulator not turned off on driver removal

commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b upstream.

We must disable the regulator that was enabled in the probe function.

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