clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 12 Dec 2015 12:43:46 +0000 (15:43 +0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 13 Dec 2015 21:07:49 +0000 (22:07 +0100)
"index" needs to be signed for the error handling to work.

Fixes: ab6e23a4e388 ('clk: sunxi: Add H3 clocks support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sun8i-bus-gates.c

index 7ab60c59dc8d6ff7c4f276ab0241c1cf73dde48c..b8c775324a5c929c93de9d1bf85cda2fd3fdcb5a 100644 (file)
@@ -40,7 +40,7 @@ static void __init sun8i_h3_bus_gates_init(struct device_node *node)
        const __be32 *p;
        int number, i;
        u8 clk_bit;
-       u32 index;
+       int index;
 
        reg = of_io_request_and_map(node, 0, of_node_full_name(node));
        if (IS_ERR(reg))