9
0
Fork 0

usb ehci: Fix braindamaged pointer-deref-cast-magic

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-10-12 15:26:51 +02:00
parent 2dbb2d1f09
commit 0cf03ba98d
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ static int ehci_reset(struct ehci_priv *ehci)
}
if (ehci_is_TDI()) {
reg_ptr = (uint32_t *)((u8 *)&ehci->hcor + USBMODE);
reg_ptr = (uint32_t *)((u8 *)ehci->hcor + USBMODE);
tmp = ehci_readl(reg_ptr);
tmp |= USBMODE_CM_HC;
#if defined(CONFIG_EHCI_MMIO_BIG_ENDIAN)