summaryrefslogtreecommitdiffstats
path: root/crypto/crypto_user.c
diff options
context:
space:
mode:
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>2012-05-17 20:09:32 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-17 11:20:34 -0700
commit123bbceebeb1174e385eab1fc2b2535dcdcc9ec3 (patch)
treeda536562050c623182c4fbc8d5fe02b3140f78c5 /crypto/crypto_user.c
parent8f9d973a0daee49e0b9b924c724b18b0170ec9cb (diff)
downloadlinux-123bbceebeb1174e385eab1fc2b2535dcdcc9ec3.tar.bz2
USB: gpio_vbus: use cached IRQ number for consistency with the probed one
gpio_vbus is designed to be able to get an IRQ number for VBUS change interrupt either (1) through platform_get_resource(IORESOURCE_IRQ) or (2) by processing gpio_to_irq(pdata->gpio_vbus), in probe() function. On the other hand, gpio_vbus_set_peripheral() and gpio_vbus_remove() are always doing gpio_to_irq(pdata->gpio_vbus) to get an IRQ number. This is not just inconsistent, but also broken. There is no guarantee that an IRQ number obtained by platform_get_resource() is equal to gpio_to_irq(pdata->gpio_vbus). Cache an IRQ number in probe() function, and use it where necessary. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/crypto_user.c')
0 files changed, 0 insertions, 0 deletions