From: Dmitry Baryshkov Date: Fri, 21 Dec 2007 09:18:01 +0000 (+0300) Subject: USB: tosa_udc_use_gpio_vbus.patch X-Git-Tag: v2.6.25-rc1~1075^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=487dc9225a8e7cc522177316abee7b1e272a2863;p=linux-2.6-omap-h63xx.git USB: tosa_udc_use_gpio_vbus.patch Use gpio_vbus instead of udc_is_connected for udc on tosa. Signed-off-by: Dmitry Baryshkov Acked-by: Russell King Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 1919756900f..1a9c844ac7e 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c @@ -157,15 +157,10 @@ static void tosa_udc_command(int cmd) } } -static int tosa_udc_is_connected(void) -{ - return ((GPLR(TOSA_GPIO_USB_IN) & GPIO_bit(TOSA_GPIO_USB_IN)) == 0); -} - - static struct pxa2xx_udc_mach_info udc_info __initdata = { .udc_command = tosa_udc_command, - .udc_is_connected = tosa_udc_is_connected, + .gpio_vbus = TOSA_GPIO_USB_IN, + .gpio_vbus_inverted = 1, }; /*