aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/omap-keypad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/omap-keypad.c')
-rw-r--r--drivers/input/keyboard/omap-keypad.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c
index ec0ebee46069..3f3d1198cdb1 100644
--- a/drivers/input/keyboard/omap-keypad.c
+++ b/drivers/input/keyboard/omap-keypad.c
@@ -101,7 +101,7 @@ static irqreturn_t omap_kp_interrupt(int irq, void *dev_id)
101 if (cpu_is_omap24xx()) { 101 if (cpu_is_omap24xx()) {
102 int i; 102 int i;
103 for (i = 0; i < omap_kp->rows; i++) 103 for (i = 0; i < omap_kp->rows; i++)
104 disable_irq(OMAP_GPIO_IRQ(row_gpios[i])); 104 disable_irq(gpio_to_irq(row_gpios[i]));
105 } else 105 } else
106 /* disable keyboard interrupt and schedule for handling */ 106 /* disable keyboard interrupt and schedule for handling */
107 omap_writew(1, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); 107 omap_writew(1, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT);
@@ -220,7 +220,7 @@ static void omap_kp_tasklet(unsigned long data)
220 if (cpu_is_omap24xx()) { 220 if (cpu_is_omap24xx()) {
221 int i; 221 int i;
222 for (i = 0; i < omap_kp_data->rows; i++) 222 for (i = 0; i < omap_kp_data->rows; i++)
223 enable_irq(OMAP_GPIO_IRQ(row_gpios[i])); 223 enable_irq(gpio_to_irq(row_gpios[i]));
224 } else { 224 } else {
225 omap_writew(0, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); 225 omap_writew(0, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT);
226 kp_cur_group = -1; 226 kp_cur_group = -1;
@@ -393,7 +393,7 @@ static int __init omap_kp_probe(struct platform_device *pdev)
393 omap_writew(0, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); 393 omap_writew(0, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT);
394 } else { 394 } else {
395 for (irq_idx = 0; irq_idx < omap_kp->rows; irq_idx++) { 395 for (irq_idx = 0; irq_idx < omap_kp->rows; irq_idx++) {
396 if (request_irq(OMAP_GPIO_IRQ(row_gpios[irq_idx]), 396 if (request_irq(gpio_to_irq(row_gpios[irq_idx]),
397 omap_kp_interrupt, 397 omap_kp_interrupt,
398 IRQF_TRIGGER_FALLING, 398 IRQF_TRIGGER_FALLING,
399 "omap-keypad", omap_kp) < 0) 399 "omap-keypad", omap_kp) < 0)
@@ -434,7 +434,7 @@ static int omap_kp_remove(struct platform_device *pdev)
434 gpio_free(col_gpios[i]); 434 gpio_free(col_gpios[i]);
435 for (i = 0; i < omap_kp->rows; i++) { 435 for (i = 0; i < omap_kp->rows; i++) {
436 gpio_free(row_gpios[i]); 436 gpio_free(row_gpios[i]);
437 free_irq(OMAP_GPIO_IRQ(row_gpios[i]), 0); 437 free_irq(gpio_to_irq(row_gpios[i]), 0);
438 } 438 }
439 } else { 439 } else {
440 omap_writew(1, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT); 440 omap_writew(1, OMAP_MPUIO_BASE + OMAP_MPUIO_KBD_MASKIT);