summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/s3c2410_udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-01-28 11:32:36 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-29 19:35:23 +0300
commitb3764dd1a318a227099984a4406f47f861b1d6eb (patch)
tree979e94ae7ca7e6489dcecbb2c9591f86742ec416 /drivers/usb/gadget/udc/s3c2410_udc.c
parentc8678d9f288e7df66f50ab7be1eff1beb6bc7d70 (diff)
downloadlinux-b3764dd1a318a227099984a4406f47f861b1d6eb.tar.xz
usb: gadget: s3c2410_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/s3c2410_udc.c')
-rw-r--r--drivers/usb/gadget/udc/s3c2410_udc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index 256a67ba2158..b808951491cc 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -1434,6 +1434,7 @@ static int s3c2410_udc_set_selfpowered(struct usb_gadget *gadget, int value)
dprintk(DEBUG_NORMAL, "%s()\n", __func__);
+ gadget->is_selfpowered = (value != 0);
if (value)
udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED);
else