Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296190
b: refs/heads/master
c: e449907
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Ferre committed Mar 1, 2012
1 parent 62c6c03 commit 8f1a777
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: fe5e07967187f3af538c237921993ec5889b3f2a
refs/heads/master: e44990790a2528dc825a258bf931c745710f652e
5 changes: 3 additions & 2 deletions trunk/drivers/usb/host/ohci-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,11 @@ static irqreturn_t ohci_hcd_at91_overcurrent_irq(int irq, void *data)

/* From the GPIO notifying the over-current situation, find
* out the corresponding port */
gpio = irq_to_gpio(irq);
for (port = 0; port < ARRAY_SIZE(pdata->overcurrent_pin); port++) {
if (pdata->overcurrent_pin[port] == gpio)
if (gpio_to_irq(pdata->overcurrent_pin[port]) == irq) {
gpio = pdata->overcurrent_pin[port];
break;
}
}

if (port == ARRAY_SIZE(pdata->overcurrent_pin)) {
Expand Down

0 comments on commit 8f1a777

Please sign in to comment.