]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00153856 [mx6q]platform data is not correctly initialized
authorTony Lin <tony.lin@freescale.com>
Mon, 1 Aug 2011 05:25:18 +0000 (13:25 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:24 +0000 (14:09 +0200)
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>
arch/arm/mach-mx6/usb_h1.c

index 353b79fd2051efa477e592696293ffca182b1349..b3b354f953715a36beac50ef75e89841ad117ad9 100644 (file)
@@ -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