diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 11:32:40 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 19:35:40 +0300 |
commit | bcdea50312b291ee3920bad43a13e42d7102f900 (patch) | |
tree | e7592f1f84e723872ea9d07d4988f6c5fb0c2848 /drivers/usb/dwc3/gadget.c | |
parent | 716013b0ab2b13fe6a176d869b9fcb9bf0f8e112 (diff) | |
download | linux-bcdea50312b291ee3920bad43a13e42d7102f900.tar.xz |
usb: dwc3: gadget: use common is_selfpowered
Delete private selfpowered variable, and use common one.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index eccd29b16840..a03a485205c7 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1415,7 +1415,7 @@ static int dwc3_gadget_set_selfpowered(struct usb_gadget *g, unsigned long flags; spin_lock_irqsave(&dwc->lock, flags); - dwc->is_selfpowered = !!is_selfpowered; + g->is_selfpowered = !!is_selfpowered; spin_unlock_irqrestore(&dwc->lock, flags); return 0; |