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

On Monday 23 May 2016 10:51 AM, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

however obvious the patch maybe, it's nice to add a little commit log.

Thanks
Kishon
> ---
> 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 = {
>

\
 
 \ /
  Last update: 2016-05-23 07:41    [W:0.388 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site