Input: gpio_input: disable_irq -> disable_irq_nosync
authorArve Hjønnevåg <arve@android.com>
Sat, 18 Apr 2009 01:24:59 +0000 (18:24 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:11 +0000 (17:49 -0700)
Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/input/misc/gpio_input.c
drivers/input/misc/gpio_matrix.c

index 6aef289e6e146cd6b7edac173e2a17b02283fdee..758df480600ba7ece10f924537be9109c4f1a855 100644 (file)
@@ -182,7 +182,7 @@ static irqreturn_t gpio_event_input_irq_handler(int irq, void *dev_id)
                                        ds->info->type, key_entry->code,
                                        keymap_index, key_entry->gpio);
                } else {
-                       disable_irq(irq);
+                       disable_irq_nosync(irq);
                        ks->debounce = DEBOUNCE_UNSTABLE;
                }
                spin_unlock_irqrestore(&ds->irq_lock, irqflags);
@@ -245,11 +245,9 @@ int gpio_event_input_func(struct gpio_event_input_devs *input_devs,
        di = container_of(info, struct gpio_event_input_info, info);
 
        if (func == GPIO_EVENT_FUNC_SUSPEND) {
-               spin_lock_irqsave(&ds->irq_lock, irqflags);
                if (ds->use_irq)
                        for (i = 0; i < di->keymap_size; i++)
                                disable_irq(gpio_to_irq(di->keymap[i].gpio));
-               spin_unlock_irqrestore(&ds->irq_lock, irqflags);
                hrtimer_cancel(&ds->timer);
                return 0;
        }
index adb00ab47b6bf97af42deb167cd7e15e1287b054..f645471b54dd5a8abbf009622a5492c3e98500a7 100644 (file)
@@ -220,7 +220,7 @@ static irqreturn_t gpio_keypad_irq_handler(int irq_in, void *dev_id)
                return IRQ_HANDLED;
 
        for (i = 0; i < mi->ninputs; i++)
-               disable_irq(gpio_to_irq(mi->input_gpios[i]));
+               disable_irq_nosync(gpio_to_irq(mi->input_gpios[i]));
        for (i = 0; i < mi->noutputs; i++) {
                if (gpio_keypad_flags & GPIOKPF_DRIVE_INACTIVE)
                        gpio_set_value(mi->output_gpios[i],