aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/tosa.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index 1919756900f4..1a9c844ac7eb 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)
157 } 157 }
158} 158}
159 159
160static int tosa_udc_is_connected(void)
161{
162 return ((GPLR(TOSA_GPIO_USB_IN) & GPIO_bit(TOSA_GPIO_USB_IN)) == 0);
163}
164
165
166static struct pxa2xx_udc_mach_info udc_info __initdata = { 160static struct pxa2xx_udc_mach_info udc_info __initdata = {
167 .udc_command = tosa_udc_command, 161 .udc_command = tosa_udc_command,
168 .udc_is_connected = tosa_udc_is_connected, 162 .gpio_vbus = TOSA_GPIO_USB_IN,
163 .gpio_vbus_inverted = 1,
169}; 164};
170 165
171/* 166/*