]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Fix ambiguous else warning
authorTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 10:43:57 +0000 (03:43 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 10:43:57 +0000 (03:43 -0700)
Fix ambiguous else warning

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010.c

index 82e055f49c9d33ddc79582fd856501a7b0408240..142ef3cce64ea8dcfd942d5a37c7d7f8c8930bfb 100644 (file)
@@ -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
         * drawing VBUS, as with OTG mA can be less than musb->min_power.
         */
-       if (musb->set_clock)
+       if (musb->set_clock) {
                if (mA)
                        musb->set_clock(musb->clock, 1);
                else
                        musb->set_clock(musb->clock, 0);
+       }
 
        /* tps65030 seems to consume max 100mA, with maybe 60mA available
         * (measured on one board) for things other than tps and tusb.