From patchwork Tue Dec 12 12:01:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 121511 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4020581qgn; Tue, 12 Dec 2017 04:01:40 -0800 (PST) X-Google-Smtp-Source: ACJfBos1h7hkV4RWEFeGRJEegPLsrcwcY+itIxTF+gzeRCxxtGWtHJSUgYHNppRlZeE77bLMeXCG X-Received: by 10.98.32.21 with SMTP id g21mr2075675pfg.52.1513080100142; Tue, 12 Dec 2017 04:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513080100; cv=none; d=google.com; s=arc-20160816; b=fxI1XdcbOUuTgwN5Cr0vOXXycoPEgfLpI2gy3iOoB23tQWon3sFeAa7E9jjE8GvBYz jF0yIExMrFlPEmu/hmM2x6TQgOiwlUTTvqHu+avsfZgXqMWLr1vvYlxmHI52qwWN0684 7p6czIxRKrHg3nCFrG9Bt50aguyW3qFQVvPUnFD26X5V4LsH4j4G5nJpAkT2IMNRJa6v VgGdMjP51SjFayjgUFwTqOVgQqM3aFbYF7WqSbSG5cerROR1rdOr05TyAFtxPqmUccL/ JPGCWUiZNd0fNwmPIuf9p+TgG9kJZszDQM4z6UdMlXcVQnlXfj6GauPUB5rQotAdSgD0 GrIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=TBcHIQoSzN7phQB+PUPYTT6J6KypaMMQcC6SyFpqAMY=; b=qwf8WRETYPd6TdowENCQbR3GE1pKnu3QwIK3Bcbyi9OjkzXBi4D9yfvGCiV3DpPr3l LJJ475PFvcdE6br5tWXQ5Zprp4978ipF5hMSdhACsm53urYCz/CuWejcn6iK9BK4KHfe bxO6FoiTUHlCvBQJRrSTbsDuEdOCLDzs7icEg4tP2EAah/keXFAc8TfcNWFVtBofh4nm +Gna+SWBXJiaCjeCcXy9Az5IPQbNXvxsNffO+Wu9r5EfE77GwdOOYG1QPu0VseL5MzhJ vAVUcTWc7qajwGwwxBi6eO9d0nTCUkvdjCRWc9YbOhotTjAenhX142nENYWuXQBYX9ET tQmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=jWUR/bFN; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si12655497pfg.320.2017.12.12.04.01.39; Tue, 12 Dec 2017 04:01:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=jWUR/bFN; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751799AbdLLMBi (ORCPT + 3 others); Tue, 12 Dec 2017 07:01:38 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:37767 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbdLLMBa (ORCPT ); Tue, 12 Dec 2017 07:01:30 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171212120128euoutp01b365eebcc400990ca38ee3eae1b84062~-ilLYgDcK2182721827euoutp01J; Tue, 12 Dec 2017 12:01:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171212120128euoutp01b365eebcc400990ca38ee3eae1b84062~-ilLYgDcK2182721827euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1513080088; bh=9iYXb3sSgQtIEnk4TrhjF2vkejLNnzZPD9/b883WJLk=; h=From:To:Cc:Subject:Date:References:From; b=jWUR/bFNuZZ9SZUeRpM65umcDYVIB8IZQxAwo0+92r+7XNV/XSuYfYpOM2mQmdL8x 9oF/Cupg6U0JMpWiavEKdP65F+1U21C2Wzi1bGYnXgvmzFn3KqjclC7oCUv0pevcyf yeIOd6z4vpV8SIp5ipWRVbEgRUR7ePkTeD4XaoJc= Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171212120127eucas1p1b71bfd8b4f340f49347f4b55c1b5158e~-ilK7l_kf1074610746eucas1p13; Tue, 12 Dec 2017 12:01:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges4.samsung.com (EUCPMTA) with SMTP id A2.33.30163.715CF2A5; Tue, 12 Dec 2017 12:01:27 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171212120127eucas1p24ffba2df81ab778b50015dcd53fe2576~-ilKQ2lak2225922259eucas1p23; Tue, 12 Dec 2017 12:01:27 +0000 (GMT) X-AuditID: cbfec7f4-f790c6d0000075d3-65-5a2fc517b870 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3F.B5.20118.615CF2A5; Tue, 12 Dec 2017 12:01:27 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P0U007CQK2A3M70@eusync3.samsung.com>; Tue, 12 Dec 2017 12:01:26 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Russell King - ARM Linux Subject: [PATCH] drm/exynos: Fix error value in exynos_drm_crtc_get_by_type() Date: Tue, 12 Dec 2017 13:01:15 +0100 Message-id: <20171212120115.21718-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWy7djPc7riR/WjDKb+krXYOGM9q8WVr+/Z LCbdn8Bicf78BnaLGef3MVkcmrqX0WLtkbvsDuwel69dZPbYtKqTzeN+93Emj74tqxg9Pm+S C2CN4rJJSc3JLEst0rdL4Mq4ufAAc0E7e0Xj3hfMDYwdbF2MnBwSAiYS966+YYGwxSQu3FsP FOfiEBJYyiix4eUbVgjnM6PEvM4DjDAdUyd8hkosY5R4u+0WC4TTwCTxcMsUdpAqNgFDia63 XWA7RATcJJoOzwTrYBZ4yijx4+18JpCEsIC/xPfen2BFLAKqEs0vrwKt4ODgFbCVeHemGGKb vMTi7zuhbv3KKrH6uS6E7SLxZH0HO4QtLPHq+BYoW0bi8uRuqH/6GSWaWrUh7BmMEufe8kLY 1hKHj19kBbGZBfgkJm2bzgyyVkKAV6KjTQiixEPi3pX5UGFHibV7NUHCQgKxEg27z7JPYJRa wMiwilEktbQ4Nz212ESvODG3uDQvXS85P3cTIzAaT/87/mUH4+JjVocYBTgYlXh4N3TpRQmx JpYVV+YeYpTgYFYS4e1u0o8S4k1JrKxKLcqPLyrNSS0+xCjNwaIkzmsb1RYpJJCeWJKanZpa kFoEk2Xi4JRqYFyu49S8TMU3uklkcvOs0ntbrV06fCKvLC6NXf9u/YstU6VfbNnnO6lU7tHM atGHbDuX3Hsl35HT7m1n0sZRZfhcKrx8x5qPb2f4LXbkv/7T+2ffAq1t+9N+PahdPTHCSfWu vr3Lf3e5WNeVipOY/aujtZKUcj6eDrt7vFk1/N2XHKs5tx8YiyqxFGckGmoxFxUnAgDYBT7i wgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNJMWRmVeSWpSXmKPExsVy+t/xq7riR/WjDH6vZbTYOGM9q8WVr+/Z LCbdn8Bicf78BnaLGef3MVkcmrqX0WLtkbvsDuwel69dZPbYtKqTzeN+93Emj74tqxg9Pm+S C2CN4rJJSc3JLEst0rdL4Mq4ufAAc0E7e0Xj3hfMDYwdbF2MnBwSAiYSUyd8ZoWwxSQu3FsP FOfiEBJYwihxv20tE4TTxCQx9+UTRpAqNgFDia63XWDdIgJuEk2HZ7KCFDELPGWU+HBgFjNI QljAV2LWopNgRSwCqhLNL68CNXNw8ArYSrw7UwyxTV5i8fedbBMYuRcwMqxiFEktLc5Nzy02 0itOzC0uzUvXS87P3cQIDJJtx35u2cHY9S74EKMAB6MSD++GLr0oIdbEsuLK3EOMEhzMSiK8 3U36UUK8KYmVValF+fFFpTmpxYcYpTlYlMR5e/esjhQSSE8sSc1OTS1ILYLJMnFwSjUwMgRI 6El8Wai6vTmnSLOef+KBo694r117VdmgoG3m/69JNViY493+8GwuketOjW9/NzvpW533lZr4 NXeZ6/rfOovvOE6s1Xv80E7QWWrOlblJ21Kff6g+dunOlnML2dZXrGXo39T3JfSXssei5FdV y5aGNNmE/fn7a/nO+5WiC/oX6li6T2TnUGIpzkg01GIuKk4EALO3txwOAgAA X-CMS-MailID: 20171212120127eucas1p24ffba2df81ab778b50015dcd53fe2576 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171212120127eucas1p24ffba2df81ab778b50015dcd53fe2576 X-RootMTR: 20171212120127eucas1p24ffba2df81ab778b50015dcd53fe2576 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org EPERM is not the correct error value when the driver is not able to get its resources. Change it to ENODEV. Reported-by: Russell King - ARM Linux Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index dc01342e759a..eea90251808f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -228,7 +228,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev, if (to_exynos_crtc(crtc)->type == out_type) return to_exynos_crtc(crtc); - return ERR_PTR(-EPERM); + return ERR_PTR(-ENODEV); } int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,