summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-07-18 08:51:07 +0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-23 22:04:33 +0100
commit1730aadffb6ec3c4fe4d69a68f2f9445fd1b1264 (patch)
tree7c938d5697f5293822e6653529298b3786de6d35 /arch/arm
parent2b0defd4c17f65fcfef758b8f3a811287eba73de (diff)
downloadblackbird-op-linux-1730aadffb6ec3c4fe4d69a68f2f9445fd1b1264.tar.gz
blackbird-op-linux-1730aadffb6ec3c4fe4d69a68f2f9445fd1b1264.zip
[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')
-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 = {
/*
* USB Device Controller
*/
-static void poodle_udc_command(int cmd)
-{
- switch(cmd) {
- case PXA2XX_UDC_CMD_CONNECT:
- GPSR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
- break;
- case PXA2XX_UDC_CMD_DISCONNECT:
- GPCR(POODLE_GPIO_USB_PULLUP) = GPIO_bit(POODLE_GPIO_USB_PULLUP);
- break;
- }
-}
-
static struct pxa2xx_udc_mach_info udc_info __initdata = {
/* no connect GPIO; poodle can't tell connection status */
- .udc_command = poodle_udc_command,
+ .gpio_pullup = POODLE_GPIO_USB_PULLUP,
};
OpenPOWER on IntegriCloud