Commit 9274e1e0 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Fix ambiguous else warning

Fix ambiguous else warning
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d3244e7c
...@@ -277,11 +277,12 @@ static int tusb_draw_power(struct otg_transceiver *x, unsigned mA) ...@@ -277,11 +277,12 @@ static int tusb_draw_power(struct otg_transceiver *x, unsigned mA)
* Keep clock active when enabled. Note that this is not tied to * Keep clock active when enabled. Note that this is not tied to
* drawing VBUS, as with OTG mA can be less than musb->min_power. * drawing VBUS, as with OTG mA can be less than musb->min_power.
*/ */
if (musb->set_clock) if (musb->set_clock) {
if (mA) if (mA)
musb->set_clock(musb->clock, 1); musb->set_clock(musb->clock, 1);
else else
musb->set_clock(musb->clock, 0); musb->set_clock(musb->clock, 0);
}
/* tps65030 seems to consume max 100mA, with maybe 60mA available /* tps65030 seems to consume max 100mA, with maybe 60mA available
* (measured on one board) for things other than tps and tusb. * (measured on one board) for things other than tps and tusb.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment