OMAP2: Fix H4 keypad
PATCH 1/1 OMAP2: Fix H4 keypad
Should be applied after keypad mutex patch.
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Subject: [PATCH] OMAP: Keypad: Fix keypad on H4, where we don't have
interrupt resource.
Signed-off-by Komal Shah <[email protected]>
---
drivers/input/keyboard/omap-keypad.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
3b89aaaa3afa8bc32b02a891b7268a7d08451495
drivers/input/keyboard/omap-keypad.c +3 -3
@@ -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 p 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 ;
@@ -386,7 +386,7 @@ static int __init omap_kp_probe(struct p }else {for (i =0 ; i < omap_kp->rows; i++) {if (request_irq (OMAP_GPIO_IRQ (row_gpios[i]), omap_kp_interrupt, -SA_TRIGGER_FALLING ,"omap-keypad" , omap_kp) <0 ) +SA_TRIGGER_FALLING ,"omap-keypad" , omap_kp) <0 )return -EINVAL ; } }
Signature · 1 line
1.1.6