summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-01-28 16:32:34 +0800
committerFelipe Balbi <balbi@ti.com>2015-01-29 10:35:13 -0600
commit0bcff9eaa83228f36b8ae42cedc588e9337b7e71 (patch)
treeb7cf3dbdd067925d599b2b5ecc9f853315bbd3c3 /drivers/usb/gadget/udc
parent58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36 (diff)
usb: gadget: r8a66597-udc: set value for common is_selfpowered
Set value for common is_selfpowered. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r--drivers/usb/gadget/udc/r8a66597-udc.c1
1 files changed, 1 insertions, 0 deletions
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