summaryrefslogtreecommitdiff
path: root/drivers/video/backlight/l4f00242t03.c
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2010-04-27 00:51:08 +0400
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 16:08:32 +0400
commit47306fc35ec39a5d0715e0a79344d02dffeaeeb2 (patch)
treee8ad0fe6b3cba2fb36af7a4a40acea2c327dd682 /drivers/video/backlight/l4f00242t03.c
parent3f43f8b2ad9035c5440d65681079f4d80542d21f (diff)
downloadlinux-47306fc35ec39a5d0715e0a79344d02dffeaeeb2.tar.xz
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.c4
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)
gpio_free(pdata->reset_gpio);
if (priv->io_reg)
- regulator_put(priv->core_reg);
- if (priv->core_reg)
regulator_put(priv->io_reg);
+ if (priv->core_reg)
+ regulator_put(priv->core_reg);
kfree(priv);