]> git.proxmox.com Git - mirror_ubuntu-hirsute-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>
Fri, 7 May 2021 07:54:01 +0000 (09:54 +0200)
commitb9b5e868ff06d41a4f40be05636bdb43b85f7b0d
tree570efecfa82e766f9ff3277cbda7d8788985e98b
parentcfc6bc2b430e5734523b6c33a9de8c33150e4a8e
net: davicom: Fix regulator not turned off on failed probe

BugLink: https://bugs.launchpad.net/bugs/1926999
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