From ddb984bccf14d29af127d4ba05e50b08a7c9490f Mon Sep 17 00:00:00 2001 From: Komal Shah Date: Tue, 28 Mar 2006 07:01:44 -0800 Subject: [PATCH] [PATCH] ARM: OMAP2: Fix H4 keypad Fix keypad on H4, where we don't have interrupt resource. Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren --- drivers/input/keyboard/omap-keypad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index ff1acb5b48f..98bbe976c8d 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -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; -- 2.41.1