OSDN Git Service

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)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 31 Oct 2019 11:24:01 +0000 (16:54 +0530)
commit82b5d164415549e74cfa1f9156ffd4463d0a76e2
treeaa668ea9bf6f11d2daf8e967c77319f7b2e67d06
parent3817c79611792333a33f6548a2aaf701a70fc593
phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_on()

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>
drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c