Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d59d9eba authored by Axel Lin's avatar Axel Lin Committed by Linus Torvalds
Browse files

drivers/video/backlight/l4f00242t03.c: return proper error in...


drivers/video/backlight/l4f00242t03.c: return proper error in l4f00242t03_probe if regulator_get() fails

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarAlberto Panizzo <alberto@amarulasolutions.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 36c3e759
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ static int __devinit l4f00242t03_probe(struct spi_device *spi)

	priv->io_reg = regulator_get(&spi->dev, "vdd");
	if (IS_ERR(priv->io_reg)) {
		ret = PTR_ERR(priv->io_reg);
		dev_err(&spi->dev, "%s: Unable to get the IO regulator\n",
		       __func__);
		goto err3;
@@ -197,6 +198,7 @@ static int __devinit l4f00242t03_probe(struct spi_device *spi)

	priv->core_reg = regulator_get(&spi->dev, "vcore");
	if (IS_ERR(priv->core_reg)) {
		ret = PTR_ERR(priv->core_reg);
		dev_err(&spi->dev, "%s: Unable to get the core regulator\n",
		       __func__);
		goto err4;