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

Commit ec874107 authored by Mark Brown's avatar Mark Brown Committed by Tomi Valkeinen
Browse files

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 9c3d5eb7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -443,7 +443,9 @@ static int venc_power_on(struct omap_dss_device *dssdev)
	dispc_set_digit_size(dssdev->panel.timings.x_res,
			dssdev->panel.timings.y_res/2);

	regulator_enable(venc.vdda_dac_reg);
	r = regulator_enable(venc.vdda_dac_reg);
	if (r)
		goto err;

	if (dssdev->platform_enable)
		dssdev->platform_enable(dssdev);