diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 16:32:40 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:35:40 -0600 |
commit | bcdea50312b291ee3920bad43a13e42d7102f900 (patch) | |
tree | e7592f1f84e723872ea9d07d4988f6c5fb0c2848 /drivers/usb/dwc3/ep0.c | |
parent | 716013b0ab2b13fe6a176d869b9fcb9bf0f8e112 (diff) | |
download | linux-stable-bcdea50312b291ee3920bad43a13e42d7102f900.tar.gz linux-stable-bcdea50312b291ee3920bad43a13e42d7102f900.tar.bz2 linux-stable-bcdea50312b291ee3920bad43a13e42d7102f900.zip |
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/ep0.c')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 1bc77a3b4997..2ef3c8d6a9db 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -344,7 +344,7 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, /* * LTM will be set once we know how to set this in HW. */ - usb_status |= dwc->is_selfpowered << USB_DEVICE_SELF_POWERED; + usb_status |= dwc->gadget.is_selfpowered; if (dwc->speed == DWC3_DSTS_SUPERSPEED) { reg = dwc3_readl(dwc->regs, DWC3_DCTL); |