From: Peter Chen Date: Wed, 28 Jan 2015 08:32:33 +0000 (+0800) Subject: usb: gadget: omap_udc: set value for common is_selfpowered X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=58ae8e0b1455ab2adc7c6733ad2dde9e0317cc36;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: omap_udc: set value for common is_selfpowered Set value for common is_selfpowered. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- 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);