USB: OTG: msm: Free VCCCX regulator even if we can't set the voltage
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 15 May 2011 16:55:58 +0000 (09:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 18:20:23 +0000 (11:20 -0700)
commite99c4309fb064604a957d9c1a8d2d4a9ff19cf5e
treee171895f35ec73bd77f0093f8808440548838fee
parent7b521fcb6bf63a49bb7712d922dd1dd0a90a93cf
USB: OTG: msm: Free VCCCX regulator even if we can't set the voltage

If for some reason we fail to set the voltage range for the VDDCX regulator
when removing it's better to still disable and free the regulator as that
avoids leaking a reference to it and is likely to ensure that it's turned
off completely.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/msm_otg.c