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>
struct omap_kp {
struct input_dev *input;
struct timer_list timer;
- unsigned int irq;
+ int irq;
unsigned int rows;
unsigned int cols;
};
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;