diff options
author | Tony Lin <tony.lin@freescale.com> | 2011-08-01 13:25:18 +0800 |
---|---|---|
committer | Tony Lin <tony.lin@freescale.com> | 2011-08-01 13:30:45 +0800 |
commit | a353290cd194baed32441b71c6e3483f6db8054e (patch) | |
tree | 78974223721df53b8ad5a3cd9632d5c390826265 | |
parent | fd5a7c1783d65eac818aaae66283845a96fe6496 (diff) |
ENGR00153856 [mx6q]platform data is not correctly initialized
wakeup_pdata is initialized after device register, thus the field can't be
initialized correctively. change to the correct sequence.
Signed-off-by: Tony Lin <tony.lin@freescale.com>
-rw-r--r-- | arch/arm/mach-mx6/usb_h1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/usb_h1.c b/arch/arm/mach-mx6/usb_h1.c index 353b79fd2051..b3b354f95371 100644 --- a/arch/arm/mach-mx6/usb_h1.c +++ b/arch/arm/mach-mx6/usb_h1.c @@ -252,8 +252,9 @@ static struct fsl_usb2_wakeup_platform_data usbh1_wakeup_config = { void __init mx6_usb_h1_init(void) { static void __iomem *anatop_base_addr = MX6_IO_ADDRESS(ANATOP_BASE_ADDR); - imx6q_add_fsl_ehci_hs(1, &usbh1_config); usbh1_config.wakeup_pdata = &usbh1_wakeup_config; + imx6q_add_fsl_ehci_hs(1, &usbh1_config); + imx6q_add_fsl_usb2_hs_wakeup(1, &usbh1_wakeup_config); /* Some phy and power's special controls for host1 * 1. The external charger detector needs to be disabled |