diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-19 10:56:39 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-04-23 03:48:05 -0400 |
commit | ec8741078d0a644d68827c8a347ac6be153622b5 (patch) | |
tree | ecc4429b24c977502a319a7e89214c97dc14e87a /drivers | |
parent | 9c3d5eb71b1fdcdef434a46444d931ada6938446 (diff) |
OMAPDSS: VENC: Check for errors from regulator_enable()
It is possible for regulator_enable() to fail and if it does fail that's
generally a bad sign for anything we try to do with the hardware afterwards
so check for and immediately return an error if regulator_enable() fails.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 9c3daf71750c..abfbd4ac3e22 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -443,7 +443,9 @@ static int venc_power_on(struct omap_dss_device *dssdev) | |||
443 | dispc_set_digit_size(dssdev->panel.timings.x_res, | 443 | dispc_set_digit_size(dssdev->panel.timings.x_res, |
444 | dssdev->panel.timings.y_res/2); | 444 | dssdev->panel.timings.y_res/2); |
445 | 445 | ||
446 | regulator_enable(venc.vdda_dac_reg); | 446 | r = regulator_enable(venc.vdda_dac_reg); |
447 | if (r) | ||
448 | goto err; | ||
447 | 449 | ||
448 | if (dssdev->platform_enable) | 450 | if (dssdev->platform_enable) |
449 | dssdev->platform_enable(dssdev); | 451 | dssdev->platform_enable(dssdev); |