diff options
-rw-r--r-- | drivers/input/keyboard/omap-keypad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 0e2a19cb43d8..f23a743817db 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c | |||
@@ -413,7 +413,7 @@ static int __devinit omap_kp_probe(struct platform_device *pdev) | |||
413 | return 0; | 413 | return 0; |
414 | err5: | 414 | err5: |
415 | for (i = irq_idx - 1; i >=0; i--) | 415 | for (i = irq_idx - 1; i >=0; i--) |
416 | free_irq(row_gpios[i], NULL); | 416 | free_irq(row_gpios[i], omap_kp); |
417 | err4: | 417 | err4: |
418 | input_unregister_device(omap_kp->input); | 418 | input_unregister_device(omap_kp->input); |
419 | input_dev = NULL; | 419 | input_dev = NULL; |
@@ -444,11 +444,11 @@ static int __devexit omap_kp_remove(struct platform_device *pdev) | |||
444 | gpio_free(col_gpios[i]); | 444 | gpio_free(col_gpios[i]); |
445 | for (i = 0; i < omap_kp->rows; i++) { | 445 | for (i = 0; i < omap_kp->rows; i++) { |
446 | gpio_free(row_gpios[i]); | 446 | gpio_free(row_gpios[i]); |
447 | free_irq(gpio_to_irq(row_gpios[i]), NULL); | 447 | free_irq(gpio_to_irq(row_gpios[i]), omap_kp); |
448 | } | 448 | } |
449 | } else { | 449 | } else { |
450 | omap_writew(1, OMAP1_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); | 450 | omap_writew(1, OMAP1_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); |
451 | free_irq(omap_kp->irq, NULL); | 451 | free_irq(omap_kp->irq, omap_kp); |
452 | } | 452 | } |
453 | 453 | ||
454 | del_timer_sync(&omap_kp->timer); | 454 | del_timer_sync(&omap_kp->timer); |