[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1463980885.4421.1.camel@ingics.com>
Date: Mon, 23 May 2016 13:21:25 +0800
From: Axel Lin <axel.lin@...ics.com>
To: Kishon Vijay Abraham I <kishon@...com>
Cc: Anup Patel <anup.patel@...adcom.com>,
Florian Fainelli <f.fainelli@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] phy: brcm-sata: Return proper error if brcm_sata_phy_init
fails
Signed-off-by: Axel Lin <axel.lin@...ics.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 6c4c5cb..5d7fad4b 100644
--- a/drivers/phy/phy-brcm-sata.c
+++ b/drivers/phy/phy-brcm-sata.c
@@ -288,7 +288,7 @@ static int brcm_sata_phy_init(struct phy *phy)
rc = -ENODEV;
};
- return 0;
+ return rc;
}
static const struct phy_ops phy_ops = {
--
2.5.0
Powered by blists - more mailing lists