]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP2: Fix H4 keypad
authorKomal Shah <komal_shah802003@yahoo.com>
Tue, 28 Mar 2006 15:01:44 +0000 (07:01 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 28 Mar 2006 15:01:44 +0000 (07:01 -0800)
Fix keypad on H4, where we don't have interrupt resource.

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/omap-keypad.c

index ff1acb5b48fda475e2c407eb6f8ea9e176749322..98bbe976c8d1c39b5ddb19eb879518198041f141 100644 (file)
@@ -56,7 +56,7 @@ static int kp_cur_group = -1;
 struct omap_kp {
        struct input_dev *input;
        struct timer_list timer;
-       unsigned int irq;
+       int irq;
        unsigned int rows;
        unsigned int cols;
 };
@@ -358,7 +358,7 @@ static int __init omap_kp_probe(struct platform_device *pdev)
        kp_tasklet.data = (unsigned long) omap_kp;
 
        omap_kp->irq = platform_get_irq(pdev, 0);
-       if (omap_kp->irq) {
+       if (omap_kp->irq >= 0) {
                if (request_irq(omap_kp->irq, omap_kp_interrupt, 0,
                                "omap-keypad", omap_kp) < 0)
                        return -EINVAL;