aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/poodle.c
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-07-17 20:51:07 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-23 17:04:33 -0400
commit1730aadffb6ec3c4fe4d69a68f2f9445fd1b1264 (patch)
tree7c938d5697f5293822e6653529298b3786de6d35 /arch/arm/mach-pxa/poodle.c
parent2b0defd4c17f65fcfef758b8f3a811287eba73de (diff)
[ARM] pxa/poodle: use .gpio_pullup in USB device platform data
Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/poodle.c')
-rw-r--r--arch/arm/mach-pxa/poodle.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index e85eba3e362d..cbcf394d84d1 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -280,21 +280,9 @@ static struct pxaficp_platform_data poodle_ficp_platform_data = {
280/* 280/*
281 * USB Device Controller 281 * USB Device Controller
282 */ 282 */
283static void poodle_udc_command(int cmd)
284{
285 switch(cmd) {
286 case PXA2XX_UDC_CMD_CONNECT:
287 GPSR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
288 break;
289 case PXA2XX_UDC_CMD_DISCONNECT:
290 GPCR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
291 break;
292 }
293}
294
295static struct pxa2xx_udc_mach_info udc_info __initdata = { 283static struct pxa2xx_udc_mach_info udc_info __initdata = {
296 /* no connect GPIO; poodle can't tell connection status */ 284 /* no connect GPIO; poodle can't tell connection status */
297 .udc_command = poodle_udc_command, 285 .gpio_pullup = POODLE_GPIO_USB_PULLUP,
298}; 286};
299 287
300 288