forked from Minki/linux
123bbceebe
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> |
||
---|---|---|
.. | ||
ab8500-usb.c | ||
fsl_otg.c | ||
fsl_otg.h | ||
gpio_vbus.c | ||
isp1301_omap.c | ||
Kconfig | ||
Makefile | ||
msm_otg.c | ||
mv_otg.c | ||
mv_otg.h | ||
nop-usb-xceiv.c | ||
otg_fsm.c | ||
otg_fsm.h | ||
otg.c | ||
twl4030-usb.c | ||
twl6030-usb.c | ||
ulpi_viewport.c | ||
ulpi.c |