diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 09:32:33 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 17:35:04 +0100 |
commit | 58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36 (patch) | |
tree | 97be83b0cbf13399fdcc30406a748b92b20bd86c /drivers/usb/gadget/udc/omap_udc.c | |
parent | usb: gadget: fsl_udc_core: set value for common is_selfpowered (diff) | |
download | linux-58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36.tar.xz linux-58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36.zip |
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 '')
-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 288c087220a8..e2fcdb8e5596 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); |