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:
parent
7c5371c403
commit
992bb253cd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue