diff options
author | Philippe Rétornaz <philippe.retornaz@epfl.ch> | 2010-05-11 10:57:50 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-17 04:05:50 -0400 |
commit | 66c202ad9a58905e0e6a0fa3976020a7ab0fa6df (patch) | |
tree | c8559ce3f8e34002228844a21172f499935f291f /arch/arm/mach-mx3/mach-mx31moboard.c | |
parent | 25783602050600b294086d6a0be9a0c2cfe8a3e3 (diff) |
mx31moboard: Move usb OTG device registration
In preparation for a new robot which needs the
OTG port as host.
This moves the OTG device registration into board
initialisation.
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Acked-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31moboard.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31moboard.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index 5c4448947d78..4bb011afc2a3 100644 --- a/arch/arm/mach-mx3/mach-mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
20 | #include <linux/dma-mapping.h> | 20 | #include <linux/dma-mapping.h> |
21 | #include <linux/fsl_devices.h> | ||
22 | #include <linux/gfp.h> | 21 | #include <linux/gfp.h> |
23 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
24 | #include <linux/init.h> | 23 | #include <linux/init.h> |
@@ -353,11 +352,6 @@ static void usb_xcvr_reset(void) | |||
353 | mdelay(1); | 352 | mdelay(1); |
354 | } | 353 | } |
355 | 354 | ||
356 | static struct fsl_usb2_platform_data usb_pdata = { | ||
357 | .operating_mode = FSL_USB2_DR_DEVICE, | ||
358 | .phy_mode = FSL_USB2_PHY_ULPI, | ||
359 | }; | ||
360 | |||
361 | #if defined(CONFIG_USB_ULPI) | 355 | #if defined(CONFIG_USB_ULPI) |
362 | 356 | ||
363 | static struct mxc_usbh_platform_data usbh2_pdata = { | 357 | static struct mxc_usbh_platform_data usbh2_pdata = { |
@@ -485,7 +479,6 @@ static void __init mxc_board_init(void) | |||
485 | 479 | ||
486 | usb_xcvr_reset(); | 480 | usb_xcvr_reset(); |
487 | 481 | ||
488 | mxc_register_device(&mxc_otg_udc_device, &usb_pdata); | ||
489 | moboard_usbh2_init(); | 482 | moboard_usbh2_init(); |
490 | 483 | ||
491 | switch (mx31moboard_baseboard) { | 484 | switch (mx31moboard_baseboard) { |