diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 16:32:39 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:35:36 -0600 |
commit | 716013b0ab2b13fe6a176d869b9fcb9bf0f8e112 (patch) | |
tree | 4079d1d878afa09dc5b05c92305be829bf8aaea8 /drivers/usb/gadget/udc | |
parent | d618c368ef98631da3adf802e500d5c61103804f (diff) | |
download | op-kernel-dev-716013b0ab2b13fe6a176d869b9fcb9bf0f8e112.zip op-kernel-dev-716013b0ab2b13fe6a176d869b9fcb9bf0f8e112.tar.gz |
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/udc')
-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 1c7379a..613547f 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); |