mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue