Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466409

[PATCH 3/4] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails

From Kishon Vijay Abraham I <kishon@ti.com>
Newsgroups linux.kernel
Subject [PATCH 3/4] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
Date 2016-08-19 15:30 +0200
Message-ID <s7S1Y-68X-45@gated-at.bofh.it> (permalink)
References <s7S1Y-68X-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Axel Lin <axel.lin@ingics.com>

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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/phy-brcm-sata.c b/drivers/phy/phy-brcm-sata.c
index 18d6626..8ffc44a 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 = {
-- 
1.7.9.5

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL] phy: for 4.8 -rc Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200
  [PATCH 1/4] phy-sun4i-usb: Add support for peripheral-only mode Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200
  [PATCH 2/4] mfd: da8xx-cfgchip: New header file for CFGCHIP registers Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200
  [PATCH 3/4] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200
  [PATCH 4/4] phy: sun9i-usb: fix error handling Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200

csiph-web