Commit 3e4e0e44 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix up __iomem warnings in the ehci driver.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent f6ab701a
......@@ -155,7 +155,7 @@ MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes");
* before driver shutdown. But it also seems to be caused by bugs in cardbus
* bridge shutdown: shutting down the bridge before the devices using it.
*/
static int handshake (u32 *ptr, u32 mask, u32 done, int usec)
static int handshake (void __iomem *ptr, u32 mask, u32 done, int usec)
{
u32 result;
......@@ -340,9 +340,8 @@ static int ehci_hc_reset (struct usb_hcd *hcd)
spin_lock_init (&ehci->lock);
ehci->caps = (struct ehci_caps *) hcd->regs;
ehci->regs = (struct ehci_regs *) (hcd->regs +
HC_LENGTH (readl (&ehci->caps->hc_capbase)));
ehci->caps = hcd->regs;
ehci->regs = hcd->regs + HC_LENGTH (readl (&ehci->caps->hc_capbase));
dbg_hcs_params (ehci, "reset");
dbg_hcc_params (ehci, "reset");
......
......@@ -71,8 +71,8 @@ struct ehci_hcd { /* one per controller */
/* glue to PCI and HCD framework */
struct usb_hcd hcd;
struct ehci_caps *caps;
struct ehci_regs *regs;
struct ehci_caps __iomem *caps;
struct ehci_regs __iomem *regs;
u32 hcs_params; /* cached register copy */
/* per-HC memory pools (could be per-bus, but ...) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment