commit | 992bb253cd6f08129edcb42b90e6c388ebf605f8 | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jirislaby@gmail.com> | Mon Jun 22 00:00:02 2009 +0200 |
committer | Samuel Ortiz <sameol@linux.intel.com> | Fri Jul 03 11:54:50 2009 +0200 |
tree | 4d13850462a1d7ce2e6e4e9c1369b06a30652f05 | |
parent | 7c5371c403abb29f01bc6cff6c5096abdf2dc524 [diff] [blame] |
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>
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 4c7b796..0cc5eef 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c
@@ -367,7 +367,8 @@ break; default: - return -1; + gate = -1; + goto already; } writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);