]> git.sur5r.net Git - u-boot/commitdiff
usb: ehci: Fix register access
authorMarek Vasut <marex@denx.de>
Sat, 14 Dec 2013 01:04:52 +0000 (02:04 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 18 Dec 2013 18:53:19 +0000 (19:53 +0100)
Fix the register access in EHCI HCD. We need to use address of the register
as an ehci_writel() argument.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-hcd.c

index 3ef204d6abce24801d7f507cb828c48818dedfca..17187caed4827841615bf2f3a66b915bb291a131 100644 (file)
@@ -948,7 +948,7 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
 #endif
        /* Set the high address word (aka segment) for 64-bit controller */
        if (ehci_readl(&ehcic[index].hccr->cr_hccparams) & 1)
-               ehci_writel(ehcic[index].hcor->or_ctrldssegment, 0);
+               ehci_writel(&ehcic[index].hcor->or_ctrldssegment, 0);
 
        qh_list = &ehcic[index].qh_list;