Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86bb7028 authored by Neil Zhang's avatar Neil Zhang Committed by Felipe Balbi
Browse files

usb: gadget: mv_udc: fix readl error



readl expected 'const volatile void *' as the argument.

Signed-off-by: default avatarNeil Zhang <zhangwm@marvell.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 8418153a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1196,7 +1196,7 @@ static int mv_udc_get_frame(struct usb_gadget *gadget)


	udc = container_of(gadget, struct mv_udc, 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;
	return retval;
}
}