net: fec: correct the error path for regulator disable in probe
authorFugang Duan <fugang.duan@nxp.com>
Thu, 13 Aug 2020 07:13:14 +0000 (15:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:49:10 +0000 (11:49 +0200)
commitb9ca7a24e64a1346b74f692484f69ab09f8483ce
tree2cedf18a6915bb9e5b33fcd152b0bd61c02ad7db
parent22da47f7c872b1709085aa8978f6707b7e1a8ba5
net: fec: correct the error path for regulator disable in probe

[ Upstream commit c6165cf0dbb82ded90163dce3ac183fc7a913dc4 ]

Correct the error path for regulator disable.

Fixes: 9269e5560b26 ("net: fec: add phy-reset-gpios PROBE_DEFER check")
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fec_main.c