phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
authorAxel Lin <axel.lin@ingics.com>
Wed, 10 Aug 2016 10:04:44 +0000 (18:04 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 12 Aug 2016 09:29:10 +0000 (14:59 +0530)
Return proper error instead of 0 if brcm_sata_phy_init fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-brcm-sata.c

index 18d662610075b3e312bb6e5e8fccb51020a2f13d..8ffc44afdb75baaceab39801b811d3c3314604e6 100644 (file)
@@ -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 = {