From: Chanwoo Choi <cwchoi00@gmail.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Chanwoo Choi <cw00.choi@samsung.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Heiko Stuebner <heiko@sntech.de>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH] PM / devfreq: rockchip-dfi: Fix an error message
Date: Mon, 26 Sep 2022 04:01:33 +0900 [thread overview]
Message-ID: <c5addc04-f29a-1366-6513-7d3bbc306e3b@gmail.com> (raw)
In-Reply-To: <47627a29a443aedf3b36a4f72b3e1ad89933a0ea.1662819332.git.christophe.jaillet@wanadoo.fr>
Hi Christophe,
On 22. 9. 10. 23:15, Christophe JAILLET wrote:
> There is a typo in the message. The clock name should be 'pclk_ddr_mon'.
> Fix it.
>
> While at it, switch to dev_err_probe() which is less verbose, filters
> -EPROBE_DEFER, and log the error code in a human readable way.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> This looks like a cut'n'paste typo from drivers/devfreq/rk3399_dmc.c
> ---
> drivers/devfreq/event/rockchip-dfi.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event/rockchip-dfi.c
> index 9a88faaf8b27..39ac069cabc7 100644
> --- a/drivers/devfreq/event/rockchip-dfi.c
> +++ b/drivers/devfreq/event/rockchip-dfi.c
> @@ -189,10 +189,9 @@ static int rockchip_dfi_probe(struct platform_device *pdev)
> return PTR_ERR(data->regs);
>
> data->clk = devm_clk_get(dev, "pclk_ddr_mon");
> - if (IS_ERR(data->clk)) {
> - dev_err(dev, "Cannot get the clk dmc_clk\n");
> - return PTR_ERR(data->clk);
> - }
> + if (IS_ERR(data->clk))
> + return dev_err_probe(dev, PTR_ERR(data->clk),
> + "Cannot get the clk pclk_ddr_mon\n");
>
> /* try to find the optional reference to the pmu syscon */
> node = of_parse_phandle(np, "rockchip,pmu", 0);
Applied it. Thanks.
--
Best Regards,
Samsung Electronics
Chanwoo Choi
prev parent reply other threads:[~2022-09-25 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-10 14:15 [PATCH] PM / devfreq: rockchip-dfi: Fix an error message Christophe JAILLET
2022-09-25 19:01 ` Chanwoo Choi [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=c5addc04-f29a-1366-6513-7d3bbc306e3b@gmail.com \
--to=cwchoi00@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=cw00.choi@samsung.com \
--cc=heiko@sntech.de \
--cc=kernel-janitors@vger.kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=myungjoo.ham@samsung.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;
as well as URLs for NNTP newsgroup(s).