diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-04-21 18:22:41 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-05-02 13:34:34 +0400 |
commit | d11536e4e0e99c26d33c849b44cd279cdd67b032 (patch) | |
tree | 8319291780b24636dd21c8cb06746ffc220adf84 /drivers/usb/host | |
parent | cdefce169594742ace29a2016dfa381755428ab5 (diff) | |
download | linux-d11536e4e0e99c26d33c849b44cd279cdd67b032.tar.xz |
mfd: Fix usbhs_enable error handling
In the case of missing platform_data we do not hold a spin_lock,
thus we should not call spin_unlock_irqrestore in the error path.
Also simplify the error handling by separating the successful path
from error path. I think this change improves readability.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Tested-by: Steve Calfee <stevecalfee@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host')
0 files changed, 0 insertions, 0 deletions