]> git.baikalelectronics.ru Git - kernel.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)
commit143c25fd5a16d3df495f3d7009d89b15bf1d3bfc
tree1620bd0a8c000f95d84512ddaf2baf7913268859
parent9bb0f4f1b2ad975c76747309f4ba3043afe4d610
net: davicom: Fix regulator not turned off on driver removal

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

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