Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328509
b: refs/heads/master
c: a78769b
h: refs/heads/master
i:
  328507: 462ba83
v: v3
  • Loading branch information
Daniel Mack authored and Dmitry Torokhov committed Aug 22, 2012
1 parent af68529 commit b0be449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: a2f25245269d754a9fd687a15db975271a58c5e0
refs/heads/master: a78769b80d73468d53d0ad70c5a9e3fd9ff9dc54
5 changes: 3 additions & 2 deletions trunk/drivers/input/misc/rotary_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)

encoder->input = input;
encoder->pdata = pdata;
encoder->irq_a = gpio_to_irq(pdata->gpio_a);
encoder->irq_b = gpio_to_irq(pdata->gpio_b);

/* create and register the input driver */
input->name = pdev->name;
Expand Down Expand Up @@ -215,6 +213,9 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
goto exit_free_gpio_a;
}

encoder->irq_a = gpio_to_irq(pdata->gpio_a);
encoder->irq_b = gpio_to_irq(pdata->gpio_b);

/* request the IRQs */
if (pdata->half_period) {
handler = &rotary_encoder_half_period_irq;
Expand Down

0 comments on commit b0be449

Please sign in to comment.