]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2021 20:01:58 +0000 (12:01 -0800)
commitcf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b
tree1620bd0a8c000f95d84512ddaf2baf7913268859
parentac88c531a5b38877eba2365a3f28f0c8b513dc33
net: davicom: Fix regulator not turned off on driver removal

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>
drivers/net/ethernet/davicom/dm9000.c