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>
This commit is contained in:
parent
8418153a4c
commit
86bb702813
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user