From: Peter Chen Date: Wed, 28 Jan 2015 08:32:34 +0000 (+0800) Subject: usb: gadget: r8a66597-udc: set value for common is_selfpowered X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0bcff9eaa83228f36b8ae42cedc588e9337b7e71;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: r8a66597-udc: set value for common is_selfpowered Set value for common is_selfpowered. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 06870da0b988..2495fe9c95c5 100644 --- a/drivers/usb/gadget/udc/r8a66597-udc.c +++ b/drivers/usb/gadget/udc/r8a66597-udc.c @@ -1803,6 +1803,7 @@ static int r8a66597_set_selfpowered(struct usb_gadget *gadget, int is_self) { struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget); + gadget->is_selfpowered = (is_self != 0); if (is_self) r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED; else