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 08:29:05 +0000 (10:29 +0200)
commit3f9f6b032d23c2668b816dc3d69af486aca56dba
treec34b7a4272fe3eb39f7add9e72c2f9b56cfb4dda
parentf3926733dcdcee8e26d65f2f5ae891c3fdea71c5
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