summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sm501.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-06-22 00:00:02 +0200
committerSamuel Ortiz <sameol@linux.intel.com>2009-07-03 11:54:50 +0200
commit992bb253cd6f08129edcb42b90e6c388ebf605f8 (patch)
tree4d13850462a1d7ce2e6e4e9c1369b06a30652f05 /drivers/mfd/sm501.c
parent7c5371c403abb29f01bc6cff6c5096abdf2dc524 (diff)
downloadop-kernel-dev-992bb253cd6f08129edcb42b90e6c388ebf605f8.zip
op-kernel-dev-992bb253cd6f08129edcb42b90e6c388ebf605f8.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
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 @@ 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);
OpenPOWER on IntegriCloud