mfd: sm501, fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Sun, 21 Jun 2009 22:00:02 +0000 (00:00 +0200)
committerSamuel Ortiz <sameol@linux.intel.com>
Fri, 3 Jul 2009 09:54:50 +0000 (11:54 +0200)
Add omitted unlock in sm501_unit_power.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sm501.c

index 4c7b796..0cc5eef 100644 (file)
@@ -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);