public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] omap: usb: ehci: fix use of hcd->regs
@ 2008-09-12 12:10 Felipe Balbi
  2008-09-12 12:14 ` Hiroshi DOYU
  2008-09-12 16:32 ` David Brownell
  0 siblings, 2 replies; 39+ messages in thread
From: Felipe Balbi @ 2008-09-12 12:10 UTC (permalink / raw)
  To: Linux OMAP Mailing List

hcd->regs should be initialized by ioremaping hcd->rsrc_start and
hcd->rsrc_len. Fix it for ehci-omap.c.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 8f122e5..a67533d 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -438,7 +438,7 @@ static int ehci_hcd_omap_drv_probe(struct platform_device *dev)
        hcd->rsrc_start = dev->resource[0].start;
        hcd->rsrc_len = dev->resource[0].end - dev->resource[0].start + 1;
 
-       hcd->regs = (void __iomem *) (int) IO_ADDRESS(hcd->rsrc_start);
+       hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);
 
        ehci = hcd_to_ehci(hcd);
        ehci->caps = hcd->regs;


-- 
balbi

^ permalink raw reply related	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2008-09-22 15:32 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 12:10 [patch] omap: usb: ehci: fix use of hcd->regs Felipe Balbi
2008-09-12 12:14 ` Hiroshi DOYU
2008-09-12 12:30   ` Felipe Balbi
2008-09-12 13:37     ` Hiroshi DOYU
2008-09-14 18:53       ` Pandita, Vikram
2008-09-12 16:32 ` David Brownell
2008-09-12 17:50   ` Felipe Balbi
2008-09-12 18:22     ` Felipe Balbi
2008-09-12 18:38       ` [rfc] [patch] clean up to ehci-omap (Was: Re: [patch] omap: usb: ehci: fix use of hcd->regs) Felipe Balbi
2008-09-12 19:16         ` David Brownell
2008-09-12 19:21           ` Tony Lindgren
2008-09-12 19:28             ` Felipe Balbi
2008-09-12 19:29               ` Felipe Balbi
2008-09-12 19:35               ` Felipe Balbi
2008-09-14 18:41                 ` Pandita, Vikram
2008-09-14 18:57                   ` Felipe Balbi
2008-09-16  5:47                     ` David Brownell
2008-09-16  7:26                       ` Felipe Balbi
2008-09-16  5:48                     ` David Brownell
2008-09-16  6:05                       ` Gadiyar, Anand
2008-09-16  6:35                         ` David Brownell
2008-09-16  7:28                       ` Felipe Balbi
2008-09-16  5:49                     ` David Brownell
2008-09-16  8:28                       ` Felipe Balbi
2008-09-18  9:35                     ` Gadiyar, Anand
2008-09-21 23:28                       ` Paul Walmsley
2008-09-22 15:17                   ` Felipe Balbi
2008-09-22 15:21                     ` Gadiyar, Anand
2008-09-22 15:26                       ` Felipe Balbi
2008-09-22 15:30                         ` Gadiyar, Anand
2008-09-22 15:32                           ` Felipe Balbi
2008-09-12 20:01               ` Gadiyar, Anand
2008-09-12 20:30                 ` David Brownell
2008-09-12 20:54                   ` Gadiyar, Anand
2008-09-12 21:15                     ` David Brownell
2008-09-12 20:38                 ` Felipe Balbi
2008-09-12 21:06                   ` Gadiyar, Anand
2008-09-12 22:18                     ` Steve Sakoman
2008-09-12 23:54       ` [patch] omap: usb: ehci: fix use of hcd->regs Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox