Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232427
b: refs/heads/master
c: 94a8cab
h: refs/heads/master
i:
  232425: f6889ad
  232423: 9c4ff8f
v: v3
  • Loading branch information
Philippe Langlais authored and Dmitry Torokhov committed Jan 21, 2011
1 parent 4782161 commit 09386d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48c27016e18f8608c12b7516515ad773093198d8
refs/heads/master: 94a8cab8caaa56824981c17b6898b73627e8382f
6 changes: 3 additions & 3 deletions trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static void gpio_keys_report_event(struct gpio_button_data *bdata)
struct gpio_keys_button *button = bdata->button;
struct input_dev *input = bdata->input;
unsigned int type = button->type ?: EV_KEY;
int state = (gpio_get_value(button->gpio) ? 1 : 0) ^ button->active_low;
int state = (gpio_get_value_cansleep(button->gpio) ? 1 : 0) ^ button->active_low;

input_event(input, type, button->code, !!state);
input_sync(input);
Expand Down Expand Up @@ -410,8 +410,8 @@ static int __devinit gpio_keys_setup_key(struct platform_device *pdev,
if (!button->can_disable)
irqflags |= IRQF_SHARED;

error = request_irq(irq, gpio_keys_isr, irqflags, desc, bdata);
if (error) {
error = request_any_context_irq(irq, gpio_keys_isr, irqflags, desc, bdata);
if (error < 0) {
dev_err(dev, "Unable to claim irq %d; error %d\n",
irq, error);
goto fail3;
Expand Down

0 comments on commit 09386d9

Please sign in to comment.