Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp342768pxb; Thu, 12 Nov 2020 05:25:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1C9sDrX5CFZtLsri1IU0zgtqBrzRyxnBYHrnMzIJCquR7I9lK5fMQpEWzDr4hypoZndee X-Received: by 2002:a50:e789:: with SMTP id b9mr5098603edn.272.1605187535122; Thu, 12 Nov 2020 05:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605187535; cv=none; d=google.com; s=arc-20160816; b=oxypXsEt9zyh4Vy88Jez2LCrby5AnoYN6G5iTmg47j04/UN9B4JImIEjBVgcntjkXn 511s1NMLRw0jP6d8PAFE8H1oyquN6rmoA+m9gyhR/iTnZMca++aJmnDVTVNOuXyRLITE 0wnVsXjksE9SHxWNUxZkzXkg9fafEKu+aNohIAy73qpUhLzwC9CN7lzcrXQpCsKsKUfG slkYRYv1TCCBj3fmu0gStW6IJ6F74jecJt3A2i6QXL8vfKtIGtiT5+ZqW7CRwexCQmFw 9xPjGx+RVRcPRCVkEuGn4Ezd0vzmOPhBttez4WgZA/Hyxk/4YZJgpFNbGLUnK6rIRa6v 37nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=cfEon+YM+67GJSFtN87Ss4zzMgK4uq0xE7RpK+s3b9A=; b=TzvIV9vS/o8AmB3DAyP3ET8P1BGKd3fN8EbenMZyN5gQXVmYjIqoei6hP5eduPtUMF 6XmUVCETNUFPiDzSrkI7k07Ib35rPdlb/SKTV2GQU6v/fdITRrnUOz8dVnq5o4UUIbY2 u60ZPfoCBBCOTltX0yHQMvh/5HB4k4tkGE1w0kPauH0yrv8odeD5ifYepVqRsdwiGmc4 a9HAI3orlKzyfXFZfM1WvwSXHvdL1gCeKj9KvG9rudSeWiOdTCUAfvrATos1dQR7GOxU k27/IcbfE3i8+L4fDd5R66IybjwyRjyKU7VA3TXy8+U46x0/kR2wB8beSbmHdT84uugT RgYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si3604825ejx.734.2020.11.12.05.25.10; Thu, 12 Nov 2020 05:25:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbgKLNXO (ORCPT + 99 others); Thu, 12 Nov 2020 08:23:14 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7181 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727789AbgKLNXN (ORCPT ); Thu, 12 Nov 2020 08:23:13 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CX2N458s4z15VD0; Thu, 12 Nov 2020 21:23:00 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Nov 2020 21:23:02 +0800 From: Xiongfeng Wang To: , , CC: , , , , Subject: [PATCH] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind() Date: Thu, 12 Nov 2020 21:14:51 +0800 Message-ID: <1605186891-47282-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix to return a negative error code from the error handling case instead of 0 in function sun8i_dw_hdmi_bind(). Fixes: b7c7436a5ff0 ("drm/sun4i: Implement A83T HDMI driver") Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index d4c0804..f010fe8 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -208,6 +208,7 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master, phy_node = of_parse_phandle(dev->of_node, "phys", 0); if (!phy_node) { dev_err(dev, "Can't found PHY phandle\n"); + ret = -ENODEV; goto err_disable_clk_tmds; } -- 1.7.12.4