summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-06-22 02:00:02 +0400
committerSamuel Ortiz <sameol@linux.intel.com>2009-07-03 13:54:50 +0400
commit992bb253cd6f08129edcb42b90e6c388ebf605f8 (patch)
tree4d13850462a1d7ce2e6e4e9c1369b06a30652f05 /drivers/mfd
parent7c5371c403abb29f01bc6cff6c5096abdf2dc524 (diff)
downloadlinux-992bb253cd6f08129edcb42b90e6c388ebf605f8.tar.xz
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')
-rw-r--r--drivers/mfd/sm501.c3
1 files changed, 2 insertions, 1 deletions
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);