X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Finput%2Fkeyboard%2Fomap-keypad.c;h=98bbe976c8d1c39b5ddb19eb879518198041f141;hb=ddb984bccf14d29af127d4ba05e50b08a7c9490f;hp=ff1acb5b48fda475e2c407eb6f8ea9e176749322;hpb=97c095d2e9b77bfa3862f103fdad6d1ebbc6f690;p=linux-2.6-omap-h63xx.git 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;