]> git.baikalelectronics.ru Git - kernel.git/commit
net: davicom: Fix regulator not turned off on failed probe
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 Apr 2021 09:02:08 +0000 (11:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2021 23:53:58 +0000 (16:53 -0700)
commit5f863bf9960d033d2bf79090ffc70e8f400898dc
treea320289be744067b1abce39fb05309a92a597160
parentd07c540bbeae09e0216d8c246e330358cbcc5426
net: davicom: Fix regulator not turned off on failed probe

When the probe fails, we must disable the regulator that was previously
enabled.

This patch is a follow-up to commit 9bb0f4f1b2ad
("net: davicom: Fix regulator not turned off on failed probe") which missed
one case.

Fixes: 47d1f5beb263 ("dm9000: Add regulator and reset support to dm9000")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c