Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1558f16 authored by Dan Carpenter's avatar Dan Carpenter Committed by Maxime Ripard
Browse files

clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()



"index" needs to be signed for the error handling to work.

Fixes: ab6e23a4 ('clk: sunxi: Add H3 clocks support')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent fd9ffd8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))