phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_on()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 4 Sep 2019 11:40:14 +0000 (11:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:00 +0000 (10:01 +0100)
commit1f51f661fd2be6349441a2aa8e558409d37b6aab
tree618155c2057f368ead3ab9e7a53cd9eaee0ee7d5
parent142cb2bd612d0dfe7ef5d5fa788bcb7b10d6b4f2
phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_on()

commit 82b5d164415549e74cfa1f9156ffd4463d0a76e2 upstream.

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: e52a632195bf ("phy: lantiq: vrx200-pcie: add a driver for the Lantiq VRX200 PCIe PHY")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c