diff options
author | Alberto Panizzo <maramaopercheseimorto@gmail.com> | 2010-04-26 16:51:08 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-26 08:08:32 -0400 |
commit | 47306fc35ec39a5d0715e0a79344d02dffeaeeb2 (patch) | |
tree | e8ad0fe6b3cba2fb36af7a4a40acea2c327dd682 /drivers/video/backlight/l4f00242t03.c | |
parent | 3f43f8b2ad9035c5440d65681079f4d80542d21f (diff) |
backlight: l4f00242t03: Fix regulators handling code in remove function
Simple swap of regulator free
Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/video/backlight/l4f00242t03.c')
-rw-r--r-- | drivers/video/backlight/l4f00242t03.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index bcdb12c93efd..1dafec85ddc0 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c | |||
@@ -222,9 +222,9 @@ static int __devexit l4f00242t03_remove(struct spi_device *spi) | |||
222 | gpio_free(pdata->reset_gpio); | 222 | gpio_free(pdata->reset_gpio); |
223 | 223 | ||
224 | if (priv->io_reg) | 224 | if (priv->io_reg) |
225 | regulator_put(priv->core_reg); | ||
226 | if (priv->core_reg) | ||
227 | regulator_put(priv->io_reg); | 225 | regulator_put(priv->io_reg); |
226 | if (priv->core_reg) | ||
227 | regulator_put(priv->core_reg); | ||
228 | 228 | ||
229 | kfree(priv); | 229 | kfree(priv); |
230 | 230 | ||