diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-05 13:52:09 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:31 -0500 |
commit | 2eb42d5c287f5e883a4b3ebe668ba880caa351e5 (patch) | |
tree | 05bba579ebdc9d945658f76f0b6476a65b69b3c3 /arch/arm/mach-imx/mach-pcm038.c | |
parent | 9d3d945a8d5be2c915f646e8dff8422486a77030 (diff) |
ARM: imx: dynamically allocate mxc-ehci devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-pcm038.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pcm038.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index b3340cd8ccdd..e209b28bee4d 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/iomux-mx27.h> | 38 | #include <mach/iomux-mx27.h> |
39 | #include <mach/mxc_nand.h> | 39 | #include <mach/mxc_nand.h> |
40 | #include <mach/mxc_ehci.h> | ||
41 | #include <mach/ulpi.h> | 40 | #include <mach/ulpi.h> |
42 | 41 | ||
43 | #include "devices-imx27.h" | 42 | #include "devices-imx27.h" |
@@ -283,7 +282,7 @@ static struct spi_board_info pcm038_spi_board_info[] __initdata = { | |||
283 | } | 282 | } |
284 | }; | 283 | }; |
285 | 284 | ||
286 | static struct mxc_usbh_platform_data usbh2_pdata = { | 285 | static const struct mxc_usbh_platform_data usbh2_pdata __initconst = { |
287 | .portsc = MXC_EHCI_MODE_ULPI, | 286 | .portsc = MXC_EHCI_MODE_ULPI, |
288 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_DIFF_UNI, | 287 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_DIFF_UNI, |
289 | }; | 288 | }; |
@@ -320,7 +319,7 @@ static void __init pcm038_init(void) | |||
320 | spi_register_board_info(pcm038_spi_board_info, | 319 | spi_register_board_info(pcm038_spi_board_info, |
321 | ARRAY_SIZE(pcm038_spi_board_info)); | 320 | ARRAY_SIZE(pcm038_spi_board_info)); |
322 | 321 | ||
323 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | 322 | imx27_add_mxc_ehci_hs(2, &usbh2_pdata); |
324 | 323 | ||
325 | imx27_add_fec(NULL); | 324 | imx27_add_fec(NULL); |
326 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 325 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |