diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 11:32:41 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 19:35:43 +0300 |
commit | dadac9861f466635c3ac0851f2a39be68fa10a71 (patch) | |
tree | 0ac4f329d7c25b75dc20da8a504774a51ebee1be /drivers/usb/musb/musb_gadget_ep0.c | |
parent | bcdea50312b291ee3920bad43a13e42d7102f900 (diff) | |
download | linux-dadac9861f466635c3ac0851f2a39be68fa10a71.tar.xz |
usb: musb: 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/musb/musb_gadget_ep0.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget_ep0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_gadget_ep0.c b/drivers/usb/musb/musb_gadget_ep0.c index 2af45a0c8930..10d30afe4a3c 100644 --- a/drivers/usb/musb/musb_gadget_ep0.c +++ b/drivers/usb/musb/musb_gadget_ep0.c @@ -85,7 +85,7 @@ static int service_tx_status_request( switch (recip) { case USB_RECIP_DEVICE: - result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED; + result[0] = musb->g.is_selfpowered << USB_DEVICE_SELF_POWERED; result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; if (musb->g.is_otg) { result[0] |= musb->g.b_hnp_enable |