diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-03-02 08:22:28 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-03-02 08:22:28 -0500 |
commit | 48b3b08e00012382cb52099e509b529305ae0a00 (patch) | |
tree | 0b5ff03c195707e3e545731121bc4537a3b42ac4 /drivers/usb | |
parent | 6e1d521b9d1201214ec4a67a7e4360232be5f963 (diff) | |
parent | f75622f4679479d352d2fa83e0d84c6c13cfcb5f (diff) |
Merge branch 'at91-3.4-cleanup2+DT' of git://github.com/at91linux/linux-at91 into next/dt
* 'at91-3.4-cleanup2+DT' of git://github.com/at91linux/linux-at91: (22 commits)
ARM: at91: at91sam9x5cm/dt: add leds support
ARM: at91: usb_a9g20/dt: add gpio-keys support
ARM: at91: at91sam9m10g45ek/dt: add gpio-keys support
ARM: at91: at91sam9m10g45ek/dt: add leds support
ARM: at91: usb_a9g20/dt: add leds support
ARM: at91/pio: add new PIO3 features
ARM: at91: add sam9_smc.o to at91sam9x5 build
ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter
ARM: at91/tc: add device tree support to atmel_tclib
ARM: at91/tclib: take iomem size from resource
ARM: at91/pit: add traces in case of error
ARM: at91: pit add DT support
ARM: at91: AIC and GPIO IRQ device tree initialization
ARM: at91/board-dt: remove AIC irq domain from board file
ARM: at91/gpio: remove the static specification of gpio_chip.base
ARM: at91/gpio: add .to_irq gpio_chip handler
ARM: at91/gpio: non-DT builds do not have gpio_chip.of_node field
ARM: at91/gpio: add irqdomain and DT support
ARM: at91/gpio: change comments and one variable name
ARM/USB: at91/ohci-at91: remove the use of irq_to_gpio
...
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 77afabc77f9b..8e855eb0bf89 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
@@ -448,10 +448,11 @@ static irqreturn_t ohci_hcd_at91_overcurrent_irq(int irq, void *data) | |||
448 | 448 | ||
449 | /* From the GPIO notifying the over-current situation, find | 449 | /* From the GPIO notifying the over-current situation, find |
450 | * out the corresponding port */ | 450 | * out the corresponding port */ |
451 | gpio = irq_to_gpio(irq); | ||
452 | for (port = 0; port < ARRAY_SIZE(pdata->overcurrent_pin); port++) { | 451 | for (port = 0; port < ARRAY_SIZE(pdata->overcurrent_pin); port++) { |
453 | if (pdata->overcurrent_pin[port] == gpio) | 452 | if (gpio_to_irq(pdata->overcurrent_pin[port]) == irq) { |
453 | gpio = pdata->overcurrent_pin[port]; | ||
454 | break; | 454 | break; |
455 | } | ||
455 | } | 456 | } |
456 | 457 | ||
457 | if (port == ARRAY_SIZE(pdata->overcurrent_pin)) { | 458 | if (port == ARRAY_SIZE(pdata->overcurrent_pin)) { |