summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-12-15 12:26:38 +0100
committerFelipe Balbi <balbi@ti.com>2011-12-19 09:02:16 +0100
commit86bb702813010a0870c45d7f080669450a95be8d (patch)
treea37c53e051663be4bd2180fd0758cf559b9debfc
parentusb: renesas_usbhs: silence a gcc warning (diff)
downloadlinux-86bb702813010a0870c45d7f080669450a95be8d.tar.xz
linux-86bb702813010a0870c45d7f080669450a95be8d.zip
usb: gadget: mv_udc: fix readl error
readl expected 'const volatile void *' as the argument. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/mv_udc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index b229edeb2bb6..635ee47dd4eb 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/drivers/usb/gadget/mv_udc_core.c
@@ -1196,7 +1196,7 @@ static int mv_udc_get_frame(struct usb_gadget *gadget)
udc = container_of(gadget, struct mv_udc, gadget);
- retval = readl(udc->op_regs->frindex) & USB_FRINDEX_MASKS;
+ retval = readl(&udc->op_regs->frindex) & USB_FRINDEX_MASKS;
return retval;
}