From: Peter Chen Date: Wed, 28 Jan 2015 08:32:28 +0000 (+0800) Subject: usb: renesas_usbhs: gadget: set value for common is_selfpowered X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a17fd41206a6d3efc565d8319405692325874884;p=openwrt%2Fstaging%2Fblogic.git usb: renesas_usbhs: gadget: 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/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 8697e6efcabf..e0384af77e56 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -926,6 +926,8 @@ static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) else usbhsg_status_clr(gpriv, USBHSG_STATUS_SELF_POWERED); + gadget->is_selfpowered = (is_self != 0); + return 0; }