diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-06-22 00:00:02 +0200 |
---|---|---|
committer | Samuel Ortiz <sameol@linux.intel.com> | 2009-07-03 11:54:50 +0200 |
commit | 992bb253cd6f08129edcb42b90e6c388ebf605f8 (patch) | |
tree | 4d13850462a1d7ce2e6e4e9c1369b06a30652f05 /drivers/mfd/sm501.c | |
parent | 7c5371c403abb29f01bc6cff6c5096abdf2dc524 (diff) |
mfd: sm501, fix lock imbalance
Add omitted unlock in sm501_unit_power.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r-- | drivers/mfd/sm501.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 4c7b7962f6b..0cc5eeff5ee 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); |