diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-15 05:57:49 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:35 -0500 |
commit | 2d58de2805f93bdb8fa0608d98e1871bb28ec091 (patch) | |
tree | c02b9ce615ef49dea30cae203f4a6fbceb668daa /arch/arm/mach-mx3/mx31moboard-devboard.c | |
parent | 9e1dde33876ba83ad586c336647fff133d0f5472 (diff) |
ARM: mx3: dynamically allocate mxc-ehci devices
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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c index 331b5950c7a0..94a0b9e4b7f3 100644 --- a/arch/arm/mach-mx3/mx31moboard-devboard.c +++ b/arch/arm/mach-mx3/mx31moboard-devboard.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <mach/common.h> | 24 | #include <mach/common.h> |
25 | #include <mach/iomux-mx3.h> | 25 | #include <mach/iomux-mx3.h> |
26 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
27 | #include <mach/mxc_ehci.h> | ||
28 | #include <mach/ulpi.h> | 27 | #include <mach/ulpi.h> |
29 | 28 | ||
30 | #include "devices-imx31.h" | 29 | #include "devices-imx31.h" |
@@ -185,7 +184,7 @@ static int devboard_isp1105_set_vbus(struct otg_transceiver *otg, bool on) | |||
185 | return 0; | 184 | return 0; |
186 | } | 185 | } |
187 | 186 | ||
188 | static struct mxc_usbh_platform_data usbh1_pdata = { | 187 | static struct mxc_usbh_platform_data usbh1_pdata __initdata = { |
189 | .init = devboard_usbh1_hw_init, | 188 | .init = devboard_usbh1_hw_init, |
190 | .portsc = MXC_EHCI_MODE_UTMI | MXC_EHCI_SERIAL, | 189 | .portsc = MXC_EHCI_MODE_UTMI | MXC_EHCI_SERIAL, |
191 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_SINGLE_UNI, | 190 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_SINGLE_UNI, |
@@ -194,6 +193,7 @@ static struct mxc_usbh_platform_data usbh1_pdata = { | |||
194 | static int __init devboard_usbh1_init(void) | 193 | static int __init devboard_usbh1_init(void) |
195 | { | 194 | { |
196 | struct otg_transceiver *otg; | 195 | struct otg_transceiver *otg; |
196 | struct platform_device *pdev; | ||
197 | 197 | ||
198 | otg = kzalloc(sizeof(*otg), GFP_KERNEL); | 198 | otg = kzalloc(sizeof(*otg), GFP_KERNEL); |
199 | if (!otg) | 199 | if (!otg) |
@@ -205,7 +205,11 @@ static int __init devboard_usbh1_init(void) | |||
205 | 205 | ||
206 | usbh1_pdata.otg = otg; | 206 | usbh1_pdata.otg = otg; |
207 | 207 | ||
208 | return mxc_register_device(&mxc_usbh1, &usbh1_pdata); | 208 | pdev = imx31_add_mxc_ehci_hs(1, &usbh1_pdata); |
209 | if (IS_ERR(pdev)) | ||
210 | return PTR_ERR(pdev); | ||
211 | |||
212 | return 0; | ||
209 | } | 213 | } |
210 | 214 | ||
211 | 215 | ||