From: David Brownell Date: Mon, 25 Feb 2008 03:14:32 +0000 (-0800) Subject: omap-keypad buildfix X-Git-Tag: v2.6.25-omap1~164 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5719751dd41b914d52dc4870102cfc34e358571;p=linux-2.6-omap-h63xx.git omap-keypad buildfix Build fixes: drivers/input/keyboard/omap-keypad.c: In function 'omap_kp_probe': drivers/input/keyboard/omap-keypad.c:418: warning: 'row_idx' is used uninitialized in this function drivers/input/keyboard/omap-keypad.c:421: warning: 'col_idx' is used uninitialized in this function These variables are useful when cpu_is_omap24xx(), and otherwise just for probe() cleanup. Signed-off-by: David Brownell Signed-off-by: Tony Lindgren --- diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 0d17854c488..fb36e64ae63 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -379,6 +379,9 @@ static int __init omap_kp_probe(struct platform_device *pdev) } omap_set_gpio_direction(row_gpios[row_idx], 1); } + } else { + col_idx = 0; + row_idx = 0; } setup_timer(&omap_kp->timer, omap_kp_timer, (unsigned long)omap_kp);