mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] MFD: sm501, fix lock imbalance
@ 2009-06-21 22:00 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2009-06-21 22:00 UTC (permalink / raw)
  To: sameo; +Cc: linux-kernel, Jiri Slaby

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-21 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-21 22:00 [PATCH] MFD: sm501, fix lock imbalance Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®