From patchwork Sat Sep 29 23:45:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 976732 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42N4xm5KFvz9s55 for ; Sun, 30 Sep 2018 09:48:44 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3D1FFC21F68; Sat, 29 Sep 2018 23:47:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 40574C21F77; Sat, 29 Sep 2018 23:46:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E5ECC21F62; Sat, 29 Sep 2018 23:46:17 +0000 (UTC) Received: from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101]) by lists.denx.de (Postfix) with ESMTP id 2DB0EC21F79 for ; Sat, 29 Sep 2018 23:46:14 +0000 (UTC) Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id B11B21AAC5; Sat, 29 Sep 2018 16:46:10 -0700 (PDT) From: Vagrant Cascadian To: u-boot@lists.denx.de Date: Sat, 29 Sep 2018 16:45:51 -0700 Message-Id: <20180929234553.31019-4-vagrant@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180929234553.31019-1-vagrant@debian.org> References: <20180929234553.31019-1-vagrant@debian.org> Cc: Vagrant Cascadian Subject: [U-Boot] [PATCH 3/5] video: anx6345: don't fail if there's no sleep or reset GPIOs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Vasily Khoruzhick 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 Signed-off-by: Vagrant Cascadian --- 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 */