]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 15:07:20 +0000 (16:07 +0100)
commitd182994b2b6e23778b146a230efac8f1d77a3445
tree46a4645f242ff15fb73101289dda15a7ba3c5ac5
parentde6a92bf27e4cd3950b07bc1ac1800ca975c47fc
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