summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-01-03 17:11:00 -0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-02-07 17:39:41 +0100
commitfeff33373a9fcee16f3d2607ad3257e2ae557621 (patch)
tree67bb3c5cbbf8bcc39e989866a68c081b04ccb7ae
parent566cf877a1fcb6d6dc0126b076aad062054c2637 (diff)
downloadlinux-feff33373a9fcee16f3d2607ad3257e2ae557621.tar.gz
linux-feff33373a9fcee16f3d2607ad3257e2ae557621.tar.xz
drm/imx: imx-tve: Make the 'dac' regulator optionalimx-drm-fixes-2017-02-08
Commit deb65870b5d9d ("drm/imx: imx-tve: check the value returned by regulator_set_voltage()") exposes the following probe issue: 63ff0000.tve supply dac not found, using dummy regulator imx-drm display-subsystem: failed to bind 63ff0000.tve (ops imx_tve_ops): -22 When the 'dac' regulator is not passed in the device tree, devm_regulator_get() will return NULL and when regulator_set_voltage() is called it returns an error. Fix the issue by making the 'dac' regulator optional. Fixes: deb65870b5d9d ("drm/imx: imx-tve: check the value returned by regulator_set_voltage()") Cc: <stable@vger.kernel.org> # 4.8+ Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r--drivers/gpu/drm/imx/imx-tve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c
index 3b602ee33c44..cec0e12ccb67 100644
--- a/drivers/gpu/drm/imx/imx-tve.c
+++ b/drivers/gpu/drm/imx/imx-tve.c
@@ -619,7 +619,7 @@ static int imx_tve_bind(struct device *dev, struct device *master, void *data)
return ret;
}
- tve->dac_reg = devm_regulator_get(dev, "dac");
+ tve->dac_reg = devm_regulator_get_optional(dev, "dac");
if (!IS_ERR(tve->dac_reg)) {
ret = regulator_set_voltage(tve->dac_reg, 2750000, 2750000);
if (ret)