From: Axel Lin Date: Thu, 21 Apr 2011 14:22:41 +0000 (+0530) Subject: mfd: Fix usbhs_enable error handling X-Git-Tag: v2.6.39-rc7~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d11536e4e0e99c26d33c849b44cd279cdd67b032;p=pandora-kernel.git 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 Tested-by: Steve Calfee Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed