Explorar o código

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 <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Axel Lin %!s(int64=9) %!d(string=hai) anos
pai
achega
bf8ca651e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/phy/phy-brcm-sata.c

+ 1 - 1
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 = {