From patchwork Thu Dec 3 05:45:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 7755901 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0C0249F350 for ; Thu, 3 Dec 2015 05:45:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B48B20573 for ; Thu, 3 Dec 2015 05:45:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3422720567 for ; Thu, 3 Dec 2015 05:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751141AbbLCFps (ORCPT ); Thu, 3 Dec 2015 00:45:48 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:50484 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbbLCFpr (ORCPT ); Thu, 3 Dec 2015 00:45:47 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NYR02WJ4PC90C60@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 03 Dec 2015 14:45:45 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 8E.7A.04886.907DF565; Thu, 3 Dec 2015 14:45:45 +0900 (KST) X-AuditID: cbfee690-f79646d000001316-b9-565fd70915a4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 87.76.09068.907DF565; Thu, 3 Dec 2015 14:45:45 +0900 (KST) Received: from localhost.localdomain ([10.113.62.206]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NYR00J2YPC90JG0@mmp1.samsung.com>; Thu, 03 Dec 2015 14:45:45 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, linux-samsung-soc@vger.kernel.org, a.hajda@samsung.com, Inki Dae Subject: [PATCH] drm/exynos: dsi: modify a error type when getting a node failed Date: Thu, 03 Dec 2015 14:45:41 +0900 Message-id: <1449121541-4693-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsWyRsSkRJfzenyYwa/Thha31p1jteg9d5LJ 4srX92wWk+5PYLGYcX4fkwOrx/ZvD1g97ncfZ/Lo27KK0ePzJrkAligum5TUnMyy1CJ9uwSu jAuTJ7EXXGKr2LvvGHMD4zbWLkZODgkBE4nna06xQ9hiEhfurWfrYuTiEBJYwSgxb+VLJpii hTO2s0AkljJKvJjTxgrh/GCUuPHgCDNIFZuAqsTEFffZQGwRAWWJvxNXMYLYzAL5EtfvnQVb JywQIHF8wTywqSxA9U/3zAdbzSvgLHGn+yEbxDY5iZPHJoMtkBB4zybR+PAsM0SDgMS3yYeA zuAASshKbDrADFEvKXFwxQ2WCYyCCxgZVjGKphYkFxQnpReZ6BUn5haX5qXrJefnbmIEhubp f88m7GC8d8D6EKMAB6MSD6+AZ3yYEGtiWXFl7iFGU6ANE5mlRJPzgRGQVxJvaGxmZGFqYmps ZG5ppiTO+1rqZ7CQQHpiSWp2ampBalF8UWlOavEhRiYOTqkGxvSDx+ep/v1uvtCX237OR+nH m7xaDiUGsB1psojfzH68d43pk/mnLBlVfxVZ7ZEy9bXxrgmVMyrb6GvfkWuYN+1BiMjJtVV/ Xyieap3Xz+nMeDlXRWBNxYmumIAjsz6wp62Q/POr9PX8i+8SBb5zHBNntahp+rOqhIltyqPV c0v9vy+9aVv6UYmlOCPRUIu5qDgRADpVYklIAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42I5/e+xgC7n9fgwgxUPtCxurTvHatF77iST xZWv79ksJt2fwGIx4/w+JgdWj+3fHrB63O8+zuTRt2UVo8fnTXIBLFENjDYZqYkpqUUKqXnJ +SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QIuVFMoSc0qBQgGJxcVK+naY JoSGuOlawDRG6PqGBMH1GBmggYQ1jBkXJk9iL7jEVrF33zHmBsZtrF2MnBwSAiYSC2dsZ4Gw xSQu3FvP1sXIxSEksJRR4sWcNlYI5wejxI0HR5hBqtgEVCUmrrjPBmKLCChL/J24ihHEZhbI l7h+7yzYVGGBAInjC+YxgdgsQPVP98xnB7F5BZwl7nQ/ZIPYJidx8thk1gmM3AsYGVYxSqQW JBcUJ6XnGuWllusVJ+YWl+al6yXn525iBIf/M+kdjId3uR9iFOBgVOLhFfCMDxNiTSwrrsw9 xCjBwawkwvttLVCINyWxsiq1KD++qDQntfgQoynQAROZpUST84GxmVcSb2hsYmZkaWRuaGFk bK4kzrvvUmSYkEB6YklqdmpqQWoRTB8TB6dUA6N2VcDKHNYbS9SE33c8iQoOru+cVLvu5J2l /XZP1f6vuPhekk39l515cuB+Z8MdT1S+GoTf2M/1psjk2j6W7E/1yxw2a0VGbVVMXJWw5dBy 5i3fjFad2DH7pl3Ge5HFxdpL+JPu2OhwMoYfU87c1PpI6PaUroxH78vmicuskBHZ6fxjSnF8 6E8lluKMREMt5qLiRABWOIzXlQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch makes it to return -EINVAL instead of -ENXIO when getting a port or endpoint node failed. Signed-off-by: Inki Dae Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 7c3606a..a24bf8b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1735,13 +1735,13 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi) ep = of_graph_get_next_endpoint(node, NULL); if (!ep) { - ret = -ENXIO; + ret = -EINVAL; goto end; } dsi->bridge_node = of_graph_get_remote_port_parent(ep); if (!dsi->bridge_node) { - ret = -ENXIO; + ret = -EINVAL; goto end; } end: