From: Daniel Palmer <daniel@0x0f.com>
To: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
sboyd@kernel.org
Cc: Daniel Palmer <daniel@0x0f.com>
Subject: [PATCH 2/2] clk: mstar: msc313-mpll: Fix format specifier
Date: Mon, 15 Feb 2021 20:57:10 +0900 [thread overview]
Message-ID: <20210215115710.3762276-2-daniel@0x0f.com> (raw)
In-Reply-To: <20210215115710.3762276-1-daniel@0x0f.com>
The output dividers are unsigned int so the format specifier
should have been %u not %d.
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
drivers/clk/mstar/clk-msc313-mpll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/mstar/clk-msc313-mpll.c b/drivers/clk/mstar/clk-msc313-mpll.c
index 09f578108eef..61beb4e87525 100644
--- a/drivers/clk/mstar/clk-msc313-mpll.c
+++ b/drivers/clk/mstar/clk-msc313-mpll.c
@@ -123,7 +123,7 @@ static int msc313_mpll_probe(struct platform_device *pdev)
mpll->clk_data->hws[0] = &mpll->clk_hw;
for (i = 0; i < ARRAY_SIZE(output_dividers); i++) {
- outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%d",
+ outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%u",
clk_init.name, output_dividers[i]);
if (!outputname)
return -ENOMEM;
--
2.30.0.rc2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-02-15 11:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-15 11:57 [PATCH 1/2] clk: mstar: Allow MStar clk drivers to be compile tested Daniel Palmer
2021-02-15 11:57 ` Daniel Palmer [this message]
2021-02-16 20:48 ` [PATCH 2/2] clk: mstar: msc313-mpll: Fix format specifier Stephen Boyd
2021-02-16 20:48 ` [PATCH 1/2] clk: mstar: Allow MStar clk drivers to be compile tested Stephen Boyd
2021-02-16 20:54 ` Stephen Boyd
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=20210215115710.3762276-2-daniel@0x0f.com \
--to=daniel@0x0f.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=sboyd@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).