[U-Boot] [PATCH 3/5] video: anx6345: don't fail if there's no sleep or reset GPIOs

Vagrant Cascadian vagrant at debian.org
Sat Sep 29 23:45:51 UTC 2018


From: Vasily Khoruzhick <anarsoul at gmail.com>

If there's no sleep or reset GPIOs, video_bridge_set_active() returns
-ENOENT. Don't fail in this case, since these GPIOs are optional.

Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
Signed-off-by: Vagrant Cascadian <vagrant at debian.org>
---

 drivers/video/bridge/anx6345.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c
index 3e3f0e2ce6..28cf2a9c2d 100644
--- a/drivers/video/bridge/anx6345.c
+++ b/drivers/video/bridge/anx6345.c
@@ -274,7 +274,7 @@ static int anx6345_enable(struct udevice *dev)
 
 	/* Deassert reset and enable power */
 	ret = video_bridge_set_active(dev, true);
-	if (ret)
+	if (ret && ret != -ENOENT)
 		return ret;
 
 	/* Reset */
-- 
2.11.0



More information about the U-Boot mailing list