diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 16:32:33 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:35:04 -0600 |
commit | 58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36 (patch) | |
tree | 97be83b0cbf13399fdcc30406a748b92b20bd86c /drivers/usb/gadget/udc/omap_udc.c | |
parent | 4651fcf3294eaa018c63dfdae0b1fb65e432f727 (diff) | |
download | op-kernel-dev-58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36.zip op-kernel-dev-58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36.tar.gz |
usb: gadget: omap_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/omap_udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/omap_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index 288c087..e2fcdb8 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -1171,6 +1171,7 @@ omap_set_selfpowered(struct usb_gadget *gadget, int is_selfpowered) unsigned long flags; u16 syscon1; + gadget->is_selfpowered = (is_selfpowered != 0); udc = container_of(gadget, struct omap_udc, gadget); spin_lock_irqsave(&udc->lock, flags); syscon1 = omap_readw(UDC_SYSCON1); |