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
1 changed files with 2 additions and 1 deletions

View File

@ -367,7 +367,8 @@ int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to)
break; break;
default: default:
return -1; gate = -1;
goto already;
} }
writel(mode, sm->regs + SM501_POWER_MODE_CONTROL); writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);