From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: kishon@ti.com, maxime.ripard@free-electrons.com, wens@csie.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] phy: fix error handling
Date: Sun, 3 Jul 2016 23:08:21 +0200 [thread overview]
Message-ID: <00d5243a-0359-1dc7-e9aa-1ad8a9074821@wanadoo.fr> (raw)
In-Reply-To: <1467525332-12963-1-git-send-email-christophe.jaillet@wanadoo.fr>
I will resubmit in the coming days.
return PTR_ERR(phy->clk);
should also be updated.
Best regards,
CJ
Le 03/07/2016 à 07:55, Christophe JAILLET a écrit :
> This is likely that checking 'phy->hsic_clk' instead of 'phy->clk' is
> expected here.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> drivers/phy/phy-sun9i-usb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/phy-sun9i-usb.c b/drivers/phy/phy-sun9i-usb.c
> index ac4f31a..ff99eba 100644
> --- a/drivers/phy/phy-sun9i-usb.c
> +++ b/drivers/phy/phy-sun9i-usb.c
> @@ -141,7 +141,7 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
> }
>
> phy->hsic_clk = devm_clk_get(dev, "hsic_12M");
> - if (IS_ERR(phy->clk)) {
> + if (IS_ERR(phy->hsic_clk)) {
> dev_err(dev, "failed to get hsic_12M clock\n");
> return PTR_ERR(phy->clk);
> }
next prev parent reply other threads:[~2016-07-03 21:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 5:55 Christophe JAILLET
2016-07-03 20:04 ` Maxime Ripard
2016-07-03 21:08 ` Christophe JAILLET [this message]
2016-07-04 7:52 ` Kishon Vijay Abraham I
2016-07-04 8:51 ` Dan Carpenter
2016-07-04 8:58 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00d5243a-0359-1dc7-e9aa-1ad8a9074821@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®