mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 00:11:22 +00:00
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>
This commit is contained in:
parent
3f43f8b2ad
commit
47306fc35e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user