Skip to content

Commit

Permalink
backlight: l4f00242t03: Fix regulators handling code in remove function
Browse files Browse the repository at this point in the history
Simple swap of regulator free

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Alberto Panizzo authored and Richard Purdie committed May 26, 2010
1 parent 3f43f8b commit 47306fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/backlight/l4f00242t03.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 47306fc

Please sign in to comment.