mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08: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
@ -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 New Issue
Block a user