mfd: sm501, fix lock imbalance

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Saturday, July 4, 2009 - 1:59 pm

Gitweb:     http://git.kernel.org/linus/992bb253cd6f08129edcb42b90e6c388ebf605f8
Commit:     992bb253cd6f08129edcb42b90e6c388ebf605f8
Parent:     7c5371c403abb29f01bc6cff6c5096abdf2dc524
Author:     Jiri Slaby <jirislaby@gmail.com>
AuthorDate: Mon Jun 22 00:00:02 2009 +0200
Committer:  Samuel Ortiz <sameol@linux.intel.com>
CommitDate: Fri Jul 3 11:54:50 2009 +0200

    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>
---
 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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mfd: sm501, fix lock imbalance, Linux Kernel Mailing List..., (Sat Jul 4, 1:59 pm)