summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/mv_udc_core.c
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-12-15 19:26:38 +0800
committerFelipe Balbi <balbi@ti.com>2011-12-19 10:02:16 +0200
commit86bb702813010a0870c45d7f080669450a95be8d (patch)
treea37c53e051663be4bd2180fd0758cf559b9debfc /drivers/usb/gadget/mv_udc_core.c
parent8418153a4ccd38a3bc3229bc4bd161e3e5db88d2 (diff)
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>
Diffstat (limited to 'drivers/usb/gadget/mv_udc_core.c')
-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;
}