]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mpc83xx: USB: fix: access of ehci struct elements
authorVivek Mahajan <vivek.mahajan@freescale.com>
Wed, 24 Jun 2009 04:38:40 +0000 (10:08 +0530)
committerRemy Bohmer <linux@bohmer.net>
Thu, 9 Jul 2009 19:33:15 +0000 (21:33 +0200)
It fixes the access to the 'ehci' struct elements for mpc83xx which
should have been taken care of in 4ef01010aa4799c759d75e67007fdd3a38c88c8a
Sorry about that.

Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
cpu/mpc83xx/cpu_init.c

index 414565cb65bb94e477ae1798851a1b154f8cb68d..03b6c86349cc795299dbeb174e9e97e53943ab4e 100644 (file)
@@ -303,11 +303,11 @@ void cpu_init_f (volatile immap_t * im)
        struct usb_ehci *ehci = (struct usb_ehci *)CONFIG_SYS_MPC8xxx_USB_ADDR;
 
        /* Configure interface. */
-       setbits_be32((void *)ehci->control, REFSEL_16MHZ | UTMI_PHY_EN);
+       setbits_be32(&ehci->control, REFSEL_16MHZ | UTMI_PHY_EN);
 
        /* Wait for clock to stabilize */
        do {
-               temp = in_be32((void *)ehci->control);
+               temp = in_be32(&ehci->control);
                udelay(1000);
        } while (!(temp & PHY_CLK_VALID));
 #endif