1
0

135-clk-sunxi-fix-signedness-bug.patch 881 B

12345678910111213141516171819202122232425
  1. From b1558f168f4ef5956913d73fe330c4da85c74349 Mon Sep 17 00:00:00 2001
  2. From: Dan Carpenter <dan.carpenter@oracle.com>
  3. Date: Sat, 12 Dec 2015 15:43:46 +0300
  4. Subject: [PATCH] clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()
  5. "index" needs to be signed for the error handling to work.
  6. Fixes: ab6e23a4e388 ('clk: sunxi: Add H3 clocks support')
  7. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
  8. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  9. ---
  10. drivers/clk/sunxi/clk-sun8i-bus-gates.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. --- a/drivers/clk/sunxi/clk-sun8i-bus-gates.c
  13. +++ b/drivers/clk/sunxi/clk-sun8i-bus-gates.c
  14. @@ -40,7 +40,7 @@ static void __init sun8i_h3_bus_gates_in
  15. const __be32 *p;
  16. int number, i;
  17. u8 clk_bit;
  18. - u32 index;
  19. + int index;
  20. reg = of_io_request_and_map(node, 0, of_node_full_name(node));
  21. if (IS_ERR(reg))