aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-01-28 03:32:34 -0500
committerFelipe Balbi <balbi@ti.com>2015-01-29 11:35:13 -0500
commit0bcff9eaa83228f36b8ae42cedc588e9337b7e71 (patch)
treeb7cf3dbdd067925d599b2b5ecc9f853315bbd3c3 /drivers/usb
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')
-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)
1803{ 1803{
1804 struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget); 1804 struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget);
1805 1805
1806 gadget->is_selfpowered = (is_self != 0);
1806 if (is_self) 1807 if (is_self)
1807 r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED; 1808 r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED;
1808 else 1809 else