[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1272315068.3037.99.camel@realization>
Date: Mon, 26 Apr 2010 22:51:08 +0200
From: Alberto Panizzo <maramaopercheseimorto@...il.com>
To: Richard Purdie <rpurdie@...ys.net>
Cc: linux-next <linux-next@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] backlight: l4f00242t03: Fix regulators handling code in
remove function
Simple swap of regulator free
Signed-off-by: Alberto Panizzo <maramaopercheseimorto@...il.com>
---
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 74abd69..9e64afa 100644
--- a/drivers/video/backlight/l4f00242t03.c
+++ b/drivers/video/backlight/l4f00242t03.c
@@ -221,9 +221,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);
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists