diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 09:32:29 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 17:32:54 +0100 |
commit | 4605437e335bf1cf3b30c1261a6a146dbd830188 (patch) | |
tree | 7740977b23b027bbe08fd610a4c5189a45466fe5 | |
parent | usb: renesas_usbhs: gadget: set value for common is_selfpowered (diff) | |
download | linux-4605437e335bf1cf3b30c1261a6a146dbd830188.tar.xz linux-4605437e335bf1cf3b30c1261a6a146dbd830188.zip |
usb: gadget: bdc_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>
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_udc.c b/drivers/usb/gadget/udc/bdc/bdc_udc.c index 3700ce70b0be..7f77db5d1278 100644 --- a/drivers/usb/gadget/udc/bdc/bdc_udc.c +++ b/drivers/usb/gadget/udc/bdc/bdc_udc.c @@ -454,6 +454,7 @@ static int bdc_udc_set_selfpowered(struct usb_gadget *gadget, unsigned long flags; dev_dbg(bdc->dev, "%s()\n", __func__); + gadget->is_selfpowered = (is_self != 0); spin_lock_irqsave(&bdc->lock, flags); if (!is_self) bdc->devstatus |= 1 << USB_DEVICE_SELF_POWERED; |