lkml.org 
[lkml]   [2016]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH RESEND] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
From
Date


On Wednesday 10 August 2016 03:34 PM, Axel Lin wrote:
> Return proper error instead of 0 if brcm_sata_phy_init fails.

merged now, thanks.

-Kishon

>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> 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(-)
>
> 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 = {
>

\
 
 \ /
  Last update: 2016-09-17 09:56    [W:0.053 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site