From: Paul Cercueil <paul@crapouillou.net>
To: 'Wei Yongjun <weiyongjun1@huawei.com>
Cc: "Kishon Vijay Abraham I" <kishon@ti.com>,
"Vinod Koul" <vkoul@kernel.org>, 周琰杰 <zhouyanjie@wanyeetech.com>,
漆鹏振 <aric.pzqi@ingenic.com>,
linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, "Hulk Robot" <hulkci@huawei.com>
Subject: Re: [PATCH -next] phy: ingenic: Fix a typo in ingenic_usb_phy_probe()
Date: Sun, 07 Mar 2021 15:54:57 +0000 [thread overview]
Message-ID: <L7WLPQ.OX36H4LIU83T3@crapouillou.net> (raw)
In-Reply-To: <20210305034933.3240914-1-weiyongjun1@huawei.com>
Le ven. 5 mars 2021 à 3:49, 'Wei Yongjun <weiyongjun1@huawei.com> a
écrit :
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fix the return value check typo which testing the wrong variable
> in ingenic_usb_phy_probe().
>
> Fixes: 31de313dfdcf ("PHY: Ingenic: Add USB PHY driver using generic
> PHY framework.")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/phy/ingenic/phy-ingenic-usb.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
> b/drivers/phy/ingenic/phy-ingenic-usb.c
> index ea127b177f46..28c28d816484 100644
> --- a/drivers/phy/ingenic/phy-ingenic-usb.c
> +++ b/drivers/phy/ingenic/phy-ingenic-usb.c
> @@ -352,8 +352,8 @@ static int ingenic_usb_phy_probe(struct
> platform_device *pdev)
> }
>
> priv->phy = devm_phy_create(dev, NULL, &ingenic_usb_phy_ops);
> - if (IS_ERR(priv))
> - return PTR_ERR(priv);
> + if (IS_ERR(priv->phy))
> + return PTR_ERR(priv->phy);
>
> phy_set_drvdata(priv->phy, priv);
>
>
next prev parent reply other threads:[~2021-03-07 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 3:49 'Wei Yongjun
2021-03-07 15:54 ` Paul Cercueil [this message]
2021-03-15 10:31 ` Vinod Koul
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=L7WLPQ.OX36H4LIU83T3@crapouillou.net \
--to=paul@crapouillou.net \
--cc=aric.pzqi@ingenic.com \
--cc=hulkci@huawei.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=vkoul@kernel.org \
--cc=weiyongjun1@huawei.com \
--cc=zhouyanjie@wanyeetech.com \
/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®