lkml.org 
[lkml]   [2009]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] MFD: sm501, fix lock imbalance
Date
Add omitted unlock in sm501_unit_power.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
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 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);
--
1.6.3.2


\
 
 \ /
  Last update: 2009-06-22 00:03    [W:0.020 / U:8.888 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site