Skip to contentSkip to conversation

MFD: sm501, fix lock imbalance

PATCH New Jiri Slaby 1 participant 1 message Jun 21, 2009 Multifunction devices (MFD)

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 MFD: sm501, fix lock imbalance

Add omitted unlock in sm501_unit_power.

---
 drivers/mfd/sm501.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mfd/sm501.c +2 -1
index 4c7b796..0cc5eef 100644
@@ -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);
Signature · 1 line
1.6.3.2