diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-12 10:40:06 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:35 -0500 |
commit | 9e1dde33876ba83ad586c336647fff133d0f5472 (patch) | |
tree | 52aa4efe87f2f52234f2f55e3a2b29e61de683c9 /arch/arm/mach-mx3/mx31moboard-devboard.c | |
parent | fed3d35b06bf3f6a3383c2637d054823c563200b (diff) |
ARM: mx3: dynamically allocate fsl-usb2-udc devices
While adapting the #defines for this I noticed that the offset
used for USB HS on i.MX35 differs from the documented offset.
I kept the working offset and commented that the documentation
differs.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard-devboard.c')
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard-devboard.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c index 3b75929f83f0..331b5950c7a0 100644 --- a/arch/arm/mach-mx3/mx31moboard-devboard.c +++ b/arch/arm/mach-mx3/mx31moboard-devboard.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
21 | #include <linux/fsl_devices.h> | ||
22 | 21 | ||
23 | #include <linux/usb/otg.h> | 22 | #include <linux/usb/otg.h> |
24 | 23 | ||
@@ -210,7 +209,7 @@ static int __init devboard_usbh1_init(void) | |||
210 | } | 209 | } |
211 | 210 | ||
212 | 211 | ||
213 | static struct fsl_usb2_platform_data usb_pdata = { | 212 | static const struct fsl_usb2_platform_data usb_pdata __initconst = { |
214 | .operating_mode = FSL_USB2_DR_DEVICE, | 213 | .operating_mode = FSL_USB2_DR_DEVICE, |
215 | .phy_mode = FSL_USB2_PHY_ULPI, | 214 | .phy_mode = FSL_USB2_PHY_ULPI, |
216 | }; | 215 | }; |
@@ -231,7 +230,7 @@ void __init mx31moboard_devboard_init(void) | |||
231 | 230 | ||
232 | devboard_init_sel_gpios(); | 231 | devboard_init_sel_gpios(); |
233 | 232 | ||
234 | mxc_register_device(&mxc_otg_udc_device, &usb_pdata); | 233 | imx31_add_fsl_usb2_udc(&usb_pdata); |
235 | 234 | ||
236 | devboard_usbh1_init(); | 235 | devboard_usbh1_init(); |
237 | } | 236 | } |