diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-12 15:43:46 +0300 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-12-13 22:07:49 +0100 |
commit | b1558f168f4ef5956913d73fe330c4da85c74349 (patch) | |
tree | 5d064a2c54834dddd1e3762796774251a080a9d4 /drivers/clk/sunxi | |
parent | fd9ffd8be01ad1e1204ed4aa2c43ef0a02e3dddc (diff) | |
download | linux-b1558f168f4ef5956913d73fe330c4da85c74349.tar.gz linux-b1558f168f4ef5956913d73fe330c4da85c74349.tar.bz2 linux-b1558f168f4ef5956913d73fe330c4da85c74349.zip |
clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()
"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>
Diffstat (limited to 'drivers/clk/sunxi')
-rw-r--r-- | drivers/clk/sunxi/clk-sun8i-bus-gates.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-sun8i-bus-gates.c b/drivers/clk/sunxi/clk-sun8i-bus-gates.c index 7ab60c59dc8d..b8c775324a5c 100644 --- a/drivers/clk/sunxi/clk-sun8i-bus-gates.c +++ b/drivers/clk/sunxi/clk-sun8i-bus-gates.c @@ -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)) |