omap-keypad buildfix
authorDavid Brownell <david-b@pacbell.net>
Mon, 25 Feb 2008 03:14:32 +0000 (19:14 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 29 Feb 2008 15:59:27 +0000 (07:59 -0800)
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 <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/omap-keypad.c

index 0d17854..fb36e64 100644 (file)
@@ -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);