From: Axel Lin Date: Wed, 10 Aug 2016 10:04:44 +0000 (+0800) Subject: phy: brcm-sata: Return proper error if brcm_sata_phy_init fails X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bf8ca651e1f8f054b39b6b3b95d6f515c3c857d5;p=linux.git phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Return proper error instead of 0 if brcm_sata_phy_init fails. Signed-off-by: Axel Lin Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/phy-brcm-sata.c b/drivers/phy/phy-brcm-sata.c index 18d662610075b..8ffc44afdb75b 100644 --- a/drivers/phy/phy-brcm-sata.c +++ b/drivers/phy/phy-brcm-sata.c @@ -367,7 +367,7 @@ static int brcm_sata_phy_init(struct phy *phy) rc = -ENODEV; }; - return 0; + return rc; } static const struct phy_ops phy_ops = {