diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 11:32:39 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 19:35:36 +0300 |
commit | 716013b0ab2b13fe6a176d869b9fcb9bf0f8e112 (patch) | |
tree | 4079d1d878afa09dc5b05c92305be829bf8aaea8 /drivers/usb/gadget | |
parent | d618c368ef98631da3adf802e500d5c61103804f (diff) | |
download | linux-716013b0ab2b13fe6a176d869b9fcb9bf0f8e112.tar.xz |
usb: gadget: pch_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')
-rw-r--r-- | drivers/usb/gadget/udc/pch_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 1c7379ac2379..613547f07828 100644 --- a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -1161,6 +1161,7 @@ static int pch_udc_pcd_selfpowered(struct usb_gadget *gadget, int value) if (!gadget) return -EINVAL; + gadget->is_selfpowered = (value != 0); dev = container_of(gadget, struct pch_udc_dev, gadget); if (value) pch_udc_set_selfpowered(dev); |