From: Stephen Boyd Date: Sat, 20 Feb 2016 01:44:27 +0000 (-0800) Subject: clk: sunxi: Use proper type for of_clk_get_parent_count() return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36bf2811416c7ac79260e0a3b1bb0648559e443b;p=linux-beck.git clk: sunxi: Use proper type for of_clk_get_parent_count() return value The return type of of_clk_get_parent_count() is an unsigned int now, so let's update the code here to be more explicit about the range of values we can test for. Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/sunxi/clk-sun6i-ar100.c b/drivers/clk/sunxi/clk-sun6i-ar100.c index 20887686bdbe..c90370572a16 100644 --- a/drivers/clk/sunxi/clk-sun6i-ar100.c +++ b/drivers/clk/sunxi/clk-sun6i-ar100.c @@ -181,7 +181,7 @@ static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev) struct ar100_clk *ar100; struct resource *r; struct clk *clk; - int nparents; + unsigned int nparents; ar100 = devm_kzalloc(&pdev->dev, sizeof(*ar100), GFP_KERNEL); if (!ar100)