diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-19 17:44:27 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-26 16:01:32 -0800 |
commit | 36bf2811416c7ac79260e0a3b1bb0648559e443b (patch) | |
tree | 666de494ea554bcbbaf452de19a6fb926b284de6 /drivers/clk | |
parent | caeb057cd30412b85e69f663a43f55a29666c79b (diff) | |
download | op-kernel-dev-36bf2811416c7ac79260e0a3b1bb0648559e443b.zip op-kernel-dev-36bf2811416c7ac79260e0a3b1bb0648559e443b.tar.gz |
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 <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/sunxi/clk-sun6i-ar100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-sun6i-ar100.c b/drivers/clk/sunxi/clk-sun6i-ar100.c index 2088768..c903705 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) |