mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
fbdev: omapfb: panel-tpo-td043mtea1: fix error code in probe()
This was using the wrong variable, "r", instead of "ddata->vcc_reg", so
it returned success instead of a negative error code.
Fixes: 0d3dbeb814
("video: fbdev: omapfb: panel-tpo-td043mtea1: Make use of the helper function dev_err_probe()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
f1fcbaa18b
commit
46f5dd7439
@ -491,7 +491,8 @@ static int tpo_td043_probe(struct spi_device *spi)
|
||||
|
||||
ddata->vcc_reg = devm_regulator_get(&spi->dev, "vcc");
|
||||
if (IS_ERR(ddata->vcc_reg)) {
|
||||
r = dev_err_probe(&spi->dev, r, "failed to get LCD VCC regulator\n");
|
||||
r = dev_err_probe(&spi->dev, PTR_ERR(ddata->vcc_reg),
|
||||
"failed to get LCD VCC regulator\n");
|
||||
goto err_regulator;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user