diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 09:32:41 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 17:35:43 +0100 |
commit | dadac9861f466635c3ac0851f2a39be68fa10a71 (patch) | |
tree | 0ac4f329d7c25b75dc20da8a504774a51ebee1be /drivers/usb/musb/musb_gadget.c | |
parent | usb: dwc3: gadget: use common is_selfpowered (diff) | |
download | linux-dadac9861f466635c3ac0851f2a39be68fa10a71.tar.xz linux-dadac9861f466635c3ac0851f2a39be68fa10a71.zip |
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.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 49b04cb6f5ca..b2d9040c7685 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1612,9 +1612,7 @@ done: static int musb_gadget_set_self_powered(struct usb_gadget *gadget, int is_selfpowered) { - struct musb *musb = gadget_to_musb(gadget); - - musb->is_self_powered = !!is_selfpowered; + gadget->is_selfpowered = !!is_selfpowered; return 0; } |