From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 12 Dec 2015 15:43:46 +0300 From: Dan Carpenter To: Emilio =?iso-8859-1?Q?L=F3pez?= , Jens Kuske Cc: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , linux-clk@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] clk: sunxi: signedness bug in sun8i_h3_bus_gates_init() Message-ID: <20151212124346.GC21408@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-ID: "index" needs to be signed for the error handling to work. Fixes: ab6e23a4e388 ('clk: sunxi: Add H3 clocks support') Signed-off-by: Dan Carpenter diff --git a/drivers/clk/sunxi/clk-sun8i-bus-gates.c b/drivers/clk/sunxi/clk-sun8i-bus-gates.c index 7ab60c5..b8c7753 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))