aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-06-21 18:00:02 -0400
committerSamuel Ortiz <sameol@linux.intel.com>2009-07-03 05:54:50 -0400
commit992bb253cd6f08129edcb42b90e6c388ebf605f8 (patch)
tree4d13850462a1d7ce2e6e4e9c1369b06a30652f05 /drivers/mfd
parent7c5371c403abb29f01bc6cff6c5096abdf2dc524 (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')
-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)
367 break; 367 break;
368 368
369 default: 369 default:
370 return -1; 370 gate = -1;
371 goto already;
371 } 372 }
372 373
373 writel(mode, sm->regs + SM501_POWER_MODE_CONTROL); 374 writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);