From d75257191b9f41e511bd1bb55251ebc8ec745036 Mon Sep 17 00:00:00 2001 From: Sangwook Lee Date: Wed, 7 Mar 2012 10:23:36 +0000 Subject: USB: ehci-s5p.c: fix kernel panics Fix ECHI register address to fix kernel panic s5p_ehci_probe+0x1c0/0x264 Signed-off-by: Sangwook Lee --- drivers/usb/host/ehci-s5p.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index 1c0b4d52f59..957aed4e872 100644 --- a/drivers/usb/host/ehci-s5p.c +++ b/drivers/usb/host/ehci-s5p.c @@ -146,8 +146,7 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev) ehci->regs = hcd->regs + HC_LENGTH(ehci, readl(&ehci->caps->hc_capbase)); - writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + - EHCI_INSNREG00_BURST_ENABLE); + writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + EHCI_INSREG00); dbg_hcs_params(ehci, "reset"); dbg_hcc_params(ehci, "reset"); @@ -257,8 +256,7 @@ static int s5p_ehci_resume(struct platform_device *pdev) /* Mark hardware accessible again as we are out of D3 state by now */ set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); - writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + - EHCI_INSNREG00_BURST_ENABLE); + writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + EHCI_INSREG00); /* If CF is still set, we maintained PCI Vaux power. * Just undo the effect of ehci_pci_suspend(). -- cgit v1.2.3