Message ID | 008a01cf52e6$c8ab50e0$5a01f2a0$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 923DB9F544 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 9 Apr 2014 01:05:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B90E420481 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 9 Apr 2014 01:05:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E32D320480 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 9 Apr 2014 01:05:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DDFC96EA0E; Tue, 8 Apr 2014 18:05:52 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id B7F5D6E82A for <dri-devel@lists.freedesktop.org>; Mon, 7 Apr 2014 21:55:44 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3P00CIO4CRTA00@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 08 Apr 2014 13:55:39 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id FA.8D.14803.A4183435; Tue, 08 Apr 2014 13:55:38 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-87-5343814a8ce6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id AA.D9.28157.94183435; Tue, 08 Apr 2014 13:55:38 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3P007XV4CP2X00@mmp1.samsung.com>; Tue, 08 Apr 2014 13:55:37 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'David Airlie' <airlied@linux.ie> References: <001e01cf4ed3$ff410170$fdc30450$%han@samsung.com> In-reply-to: <001e01cf4ed3$ff410170$fdc30450$%han@samsung.com> Subject: [PATCH V2] DRM: Armada: Use devm_ioremap_resource() Date: Tue, 08 Apr 2014 13:55:37 +0900 Message-id: <008a01cf52e6$c8ab50e0$5a01f2a0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9O0/rjmtczj/fhTZKiP5FwxqID3wEEq26A Content-language: ko x-cr-hashedpuzzle: HRIo J0S0 MdEf Nuly OQ4Q OfcK QE4R VNQE X+nC ZX9w ck/v iICa iKFF uNRb vcaX yMnx; 5; YQBpAHIAbABpAGUAZABAAGwAaQBuAHUAeAAuAGkAZQA7AGQAcgBpAC0AZABlAHYAZQBsAEAAbABpAHMAdABzAC4AZgByAGUAZQBkAGUAcwBrAHQAbwBwAC4AbwByAGcAOwBqAGcAMQAuAGgAYQBuAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAcgBtAGsAKwBrAGUAcgBuAGUAbABAAGEAcgBtAC4AbABpAG4AdQB4AC4AbwByAGcALgB1AGsAOwB0AGgAaQBlAHIAcgB5AC4AcgBlAGQAaQBuAGcAQABnAG0AYQBpAGwALgBjAG8AbQA=; Sosha1_v1; 7; {D834C700-7BEB-49F0-A6A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op: Reflected X-Mailman-Approved-At: Tue, 08 Apr 2014 18:05:51 -0700 Cc: 'Jingoo Han' <jg1.han@samsung.com>, 'Russell King' <rmk+kernel@arm.linux.org.uk>, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 |
diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index 5831e41..0bcce78 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -1038,11 +1038,9 @@ int armada_drm_crtc_create(struct drm_device *dev, unsigned num, if (ret) return ret; - base = devm_request_and_ioremap(dev->dev, res); - if (!base) { - DRM_ERROR("failed to ioremap register\n"); - return -ENOMEM; - } + base = devm_ioremap_resource(dev->dev, res); + if (IS_ERR(base)) + return PTR_ERR(base); dcrtc = kzalloc(sizeof(*dcrtc), GFP_KERNEL); if (!dcrtc) {
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- Changes since v1: - remove unnecessary error message, because devm_ioremap_resource() already prints one in all failure cases. drivers/gpu/drm/armada/armada_crtc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)