Skip to content

Commit

Permalink
usb: gadget: mv_udc: fix readl error
Browse files Browse the repository at this point in the history
readl expected 'const volatile void *' as the argument.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Neil Zhang authored and Felipe Balbi committed Dec 19, 2011
1 parent 8418153 commit 86bb702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 86bb702

Please sign in to comment.