summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2010-04-26 22:51:08 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 13:08:32 +0100
commit47306fc35ec39a5d0715e0a79344d02dffeaeeb2 (patch)
treee8ad0fe6b3cba2fb36af7a4a40acea2c327dd682 /drivers/video
parent3f43f8b2ad9035c5440d65681079f4d80542d21f (diff)
downloadop-kernel-dev-47306fc35ec39a5d0715e0a79344d02dffeaeeb2.zip
op-kernel-dev-47306fc35ec39a5d0715e0a79344d02dffeaeeb2.tar.gz
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')
-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 bcdb12c..1dafec8 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);
OpenPOWER on IntegriCloud