Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beb7a2a9 authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Stephen Boyd
Browse files

clk: axm55xx: Use %zu in pr_info for size_t



Fix the following compiler warning:

drivers/clk/clk-axm5516.c: In function 'axmclk_probe':
drivers/clk/clk-axm5516.c:559:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' [-Wformat=]
  pr_info("axmclk: supporting %u clocks\n", num_clks);
    ^

Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent b1ed311b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -556,7 +556,7 @@ static int axmclk_probe(struct platform_device *pdev)
		return PTR_ERR(regmap);
		return PTR_ERR(regmap);


	num_clks = ARRAY_SIZE(axmclk_clocks);
	num_clks = ARRAY_SIZE(axmclk_clocks);
	pr_info("axmclk: supporting %u clocks\n", num_clks);
	pr_info("axmclk: supporting %zu clocks\n", num_clks);
	priv = devm_kzalloc(dev, sizeof(*priv) + sizeof(*priv->clks) * num_clks,
	priv = devm_kzalloc(dev, sizeof(*priv) + sizeof(*priv->clks) * num_clks,
			    GFP_KERNEL);
			    GFP_KERNEL);
	if (!priv)
	if (!priv)