]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 4 May 2021 14:13:35 +0000 (16:13 +0200)
commite0df736d7f156cfb44e5a47e7822f1c373e461ef
treeb9bb6565ef4378adb2fda00fa959e0dd935fad6c
parent644a7d501c4440e461e601442bb7fe1f6974dead
net: davicom: Fix regulator not turned off on failed probe

BugLink: https://bugs.launchpad.net/bugs/1926493
commit 31457db3750c0b0ed229d836f2609fdb8a5b790e upstream.

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

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

Fixes: 7994fe55a4a2 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/davicom/dm9000.c