From: Jiri Slaby Date: Sun, 21 Jun 2009 22:00:02 +0000 (+0200) Subject: mfd: sm501, fix lock imbalance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=992bb253cd6f08129edcb42b90e6c388ebf605f8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mfd: sm501, fix lock imbalance Add omitted unlock in sm501_unit_power. Signed-off-by: Jiri Slaby Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 4c7b7962f6b8..0cc5eeff5ee8 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -367,7 +367,8 @@ int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) break; default: - return -1; + gate = -1; + goto already; } writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);