Skip to contentSkip to conversation

backlight: l4f00242t03: Fix regulators handling code in remove function

PATCH Applied Alberto Panizzo 2 participants 2 messages Apr 26, 2010 – May 9, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backlight: l4f00242t03: Fix regulators handling code in remove function

Simple swap of regulator free

---
 drivers/video/backlight/l4f00242t03.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/backlight/l4f00242t03.c +2 -2
index 74abd69..9e64afa 100644
@@ -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);
 
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 6 lines · Alberto Panizzo

Simple swap of regulator free

---
 drivers/video/backlight/l4f00242t03.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Queued in the backlight tree, thanks!

Richard