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>
This commit is contained in:
Jiri Slaby 2009-06-22 00:00:02 +02:00 committed by Samuel Ortiz
parent 7c5371c403
commit 992bb253cd

View File

@ -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);