From: Matthias Brugger <matthias.bgg@gmail.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>,
linux-spi@vger.kernel.org, linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [RESEND PATCH] spi: mediatek: fix wrong error return value on probe
Date: Fri, 18 Sep 2015 23:04:54 +0200 [thread overview]
Message-ID: <2905291.oz4bWkMeg3@ubix> (raw)
In-Reply-To: <1442321205-30869-1-git-send-email-javier@osg.samsung.com>
On Tuesday, September 15, 2015 02:46:45 PM Javier Martinez Canillas wrote:
> Commit adcbcfea15d62 ("spi: mediatek: fix spi clock usage error")
> added a new sel_clk but introduced bugs in the error paths since
> the wrong struct clk pointers are passed to PTR_ERR().
>
> Fixes: adcbcfea15d62 ("spi: mediatek: fix spi clock usage error")
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> ---
> Patch based on git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
> branch fix/mediatek but also applies cleanly to branch for-linus.
>
> It's the exact same patch than before so I don't know what went wrong.
>
> drivers/spi/spi-mt65xx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c
> index 6fbb5e5132b0..e9839a4e0175 100644
> --- a/drivers/spi/spi-mt65xx.c
> +++ b/drivers/spi/spi-mt65xx.c
> @@ -585,14 +585,14 @@ static int mtk_spi_probe(struct platform_device *pdev)
>
> mdata->sel_clk = devm_clk_get(&pdev->dev, "sel-clk");
> if (IS_ERR(mdata->sel_clk)) {
> - ret = PTR_ERR(mdata->spi_clk);
> + ret = PTR_ERR(mdata->sel_clk);
> dev_err(&pdev->dev, "failed to get sel-clk: %d\n", ret);
> goto err_put_master;
> }
>
> mdata->spi_clk = devm_clk_get(&pdev->dev, "spi-clk");
> if (IS_ERR(mdata->spi_clk)) {
> - ret = PTR_ERR(mdata->parent_clk);
> + ret = PTR_ERR(mdata->spi_clk);
> dev_err(&pdev->dev, "failed to get spi-clk: %d\n", ret);
> goto err_put_master;
> }
prev parent reply other threads:[~2015-09-18 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 12:46 [RESEND PATCH] spi: mediatek: fix wrong error return value on probe Javier Martinez Canillas
2015-09-18 21:04 ` Matthias Brugger [this message]
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=2905291.oz4bWkMeg3@ubix \
--to=matthias.bgg@gmail.com \
--cc=broonie@kernel.org \
--cc=javier@osg.samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-spi@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).