phy: marvell: a3700: Return correct error code when power up fails
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 14:11:57 +0000 (16:11 +0200)
committerStefan Roese <sr@denx.de>
Fri, 8 Oct 2021 06:33:52 +0000 (08:33 +0200)
commit021a98a2d6512bf59581675a997d659b18c09306
treeca6dda07a319a15771a5ab024ea3e7b1c4f10854
parent4ca474d3067ba7278c6a5f94ff4340ca5a07ca0a
phy: marvell: a3700: Return correct error code when power up fails

Subroutines in comphy_usb2_power_up() and comphy_sgmii_power_up() functions
may fail. In this case, do not continue execution of current function and
instead jump to the end. Return value in 'ret' variable is already set.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_a3700.c