diff options
author | Daniel Palmer <daniel@0x0f.com> | 2021-02-15 14:57:10 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-02-16 23:52:28 +0300 |
commit | d90afa62acd40cf6c3a70f35a8d83cddd6741fc7 (patch) | |
tree | 5ea6cc577051beea3d17f854ae7c375f28d5a891 | |
parent | 93c89f03cb1d734630597cb0acf0b2af309f8e62 (diff) | |
download | linux-d90afa62acd40cf6c3a70f35a8d83cddd6741fc7.tar.xz |
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>
-rw-r--r-- | drivers/clk/mstar/clk-msc313-mpll.c | 2 |
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; |