clk: axm55xx: Use %zu in pr_info for size_t
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Wed, 13 May 2015 16:27:40 +0000 (18:27 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 13 May 2015 19:32:53 +0000 (12:32 -0700)
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: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-axm5516.c

index 0f6368ceec4c970a670cbe63297dcbfbef125869..c7c91a5ecf8be8a2ceab3b143d762f1daabd8810 100644 (file)
@@ -556,7 +556,7 @@ static int axmclk_probe(struct platform_device *pdev)
                return PTR_ERR(regmap);
 
        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,
                            GFP_KERNEL);
        if (!priv)