phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
PATCH RESEND 1/1 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 <[email protected]>
---
It was sent on https://lkml.org/lkml/2016/5/23/12 .
drivers/phy/phy-brcm-sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/phy-brcm-sata.c +1 -1
@@ -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 = {
Signature · 1 line
2.7.4
Quoted 1 line · Axel Lin
Return proper error instead of 0 if
brcm_sata_phy_initfails.
merged now, thanks.
-Kishon
Quoted 21 lines
Signed-off-by Axel Lin <[email protected]>---
It was sent on https://lkml.org/lkml/2016/5/23/12 .drivers/phy/phy-brcm-sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/phy/phy-brcm-sata.c +1
-1@@ -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 = {