aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/mstar
diff options
context:
space:
mode:
authorDaniel Palmer2021-02-15 20:57:10 +0900
committerStephen Boyd2021-02-16 12:52:28 -0800
commitd90afa62acd40cf6c3a70f35a8d83cddd6741fc7 (patch)
tree5ea6cc577051beea3d17f854ae7c375f28d5a891 /drivers/clk/mstar
parent93c89f03cb1d734630597cb0acf0b2af309f8e62 (diff)
clk: mstar: msc313-mpll: Fix format specifier
The output dividers are unsigned int so the format specifier should have been %u not %d. Signed-off-by: Daniel Palmer <daniel@0x0f.com> Link: https://lore.kernel.org/r/20210215115710.3762276-2-daniel@0x0f.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mstar')
-rw-r--r--drivers/clk/mstar/clk-msc313-mpll.c2
1 files changed, 1 insertions, 1 deletions
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;