Message ID | 20210215115710.3762276-2-daniel@0x0f.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] clk: mstar: Allow MStar clk drivers to be compile tested | expand |
Quoting Daniel Palmer (2021-02-15 03:57:10) > The output dividers are unsigned int so the format specifier > should have been %u not %d. > > Signed-off-by: Daniel Palmer <daniel@0x0f.com> > --- Applied to clk-next
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;
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(-)