usb: gadget: mv_udc: fix readl error
authorNeil Zhang <zhangwm@marvell.com>
Thu, 15 Dec 2011 11:26:38 +0000 (19:26 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 19 Dec 2011 08:02:16 +0000 (10:02 +0200)
readl expected 'const volatile void *' as the argument.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c

index b229edeb2bb6cc958e5ecd1c0b85bf34fe60a6ee..635ee47dd4eb9d82fe19e9f727ebc568c64f6960 100644 (file)
@@ -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;
 }