Skip to content

Commit

Permalink
mfd: sm501, fix lock imbalance
Browse files Browse the repository at this point in the history
Add omitted unlock in sm501_unit_power.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Jiri Slaby authored and Samuel Ortiz committed Jul 3, 2009
1 parent 7c5371c commit 992bb25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mfd/sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 992bb25

Please sign in to comment.