Message ID | 000b01cf7975$3544f580$9fcee080$%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@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7E3FEBF90B for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 27 May 2014 06:31:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93B0F2028D for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 27 May 2014 06:30:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AB7AA20254 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 27 May 2014 06:30:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 797176E1AC; Mon, 26 May 2014 23:30:56 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id BC78D6E1AC for <dri-devel@lists.freedesktop.org>; Mon, 26 May 2014 23:30:54 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N6700JBNZFHKQA0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 27 May 2014 15:30:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id FA.FF.16580.D1134835; Tue, 27 May 2014 15:30:53 +0900 (KST) X-AuditID: cbfee691-b7f2f6d0000040c4-74-5384311d18dc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 94.E3.08203.C1134835; Tue, 27 May 2014 15:30:53 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N6700D6FZFG3390@mmp2.samsung.com>; Tue, 27 May 2014 15:30:52 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'David Airlie' <airlied@linux.ie> Subject: [PATCH RESEND V2] DRM: armada: Use devm_ioremap_resource() Date: Tue, 27 May 2014 15:30:52 +0900 Message-id: <000b01cf7975$3544f580$9fcee080$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac95dTFEqv3iZhdyQ4+1M2YQtO7V9Q== Content-language: ko x-cr-hashedpuzzle: AHcV HDQP HY0z Hjwi I0PP NpL5 Opqd Rr1L WxrB YKei ZB63 ZTBf b3Fk eEqm hdiF s8LR; 4; YQBpAHIAbABpAGUAZABAAGwAaQBuAHUAeAAuAGkAZQA7AGQAcgBpAC0AZABlAHYAZQBsAEAAbABpAHMAdABzAC4AZgByAGUAZQBkAGUAcwBrAHQAbwBwAC4AbwByAGcAOwBqAGcAMQAuAGgAYQBuAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAcgBtAGsAKwBrAGUAcgBuAGUAbABAAGEAcgBtAC4AbABpAG4AdQB4AC4AbwByAGcALgB1AGsA; Sosha1_v1; 7; {86D670AB-ED10-4EAD-92B9-25EF07E84BD4}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Tue, 27 May 2014 06:30:46 GMT; WwBQAEEAVABDAEgAIABSAEUAUwBFAE4ARAAgAFYAMgBdACAARABSAE0AOgAgAGEAcgBtAGEAZABhADoAIABVAHMAZQAgAGQAZQB2AG0AXwBpAG8AcgBlAG0AYQBwAF8AcgBlAHMAbwB1AHIAYwBlACgAKQA= x-cr-puzzleid: {86D670AB-ED10-4EAD-92B9-25EF07E84BD4} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zA11Zw5Zgg0Uz2S16z51ksrjy9T2b xeWFl1gtNn94yebA4tHS3MPmsf3bA1aP+93HmTz6tqxiDGCJ4rJJSc3JLEst0rdL4Mpo2PqH pWA6e8XF7TdYGhjb2LoYOTkkBEwkFk9byQhhi0lcuLceKM7FISSwjFFiydW77DBFs1e0sUIk pjNKbNzzkBHC+c0ocbDvCTNIFZuAmsSXL4eBOjg4RARUJaadtgcJMwtUSjyfvRlsg7CAs8SX K/NYQWwWoJLnv5+BXcErYCsx6fpHVghbUOLH5HssEL1aEut3HmeCsOUlNq95ywwyXkJAXeLR X12ITXoSLR90ICpEJPa9eAd2mYTABFaJjnNzmCDuN5U4svArC4R9jl1izisziBMEJL5NPsQC MVJWYtMBZogSSYmDK26wTGCUmIXkoFlIDpqF5KBZSFYvYGRZxSiaWpBcUJyUXmSqV5yYW1ya l66XnJ+7iRESlRN3MN4/YH2IMRlo/URmKdHkfGBU55XEGxqbGVmYmpgaG5lbmpEmrCTOm/4o KUhIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QDY8FykfyjLxb8YuNf0mmhWFbzJ6hY7dfdJbwM J6K8jGT+OOX52H/2uLfscs6kiU95M3/9nb/GWehEDGM4p95+W6bcLA72SS/D5k94f9du9dYl zZ+edDjtesrL9XwpnxufqJGkOpfHXxHFufVXzzM79Da59YbP+HBI4Osn350SNw2N6881V9un KrEUZyQaajEXFScCAOW39AvgAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNKsWRmVeSWpSXmKPExsVy+t9jQV1Zw5Zgg703mS16z51ksrjy9T2b xeWFl1gtNn94yebA4tHS3MPmsf3bA1aP+93HmTz6tqxiDGCJamC0yUhNTEktUkjNS85PycxL t1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAFaqqRQlphTChQKSCwuVtK3wzQhNMRN 1wKmMULXNyQIrsfIAA0krGPMaNj6h6VgOnvFxe03WBoY29i6GDk5JARMJGavaGOFsMUkLtxb DxTn4hASmM4osXHPQ0YI5zejxMG+J8wgVWwCahJfvhxm72Lk4BARUJWYdtoeJMwsUCnxfPZm RhBbWMBZ4suVeWBDWYBKnv9+BraMV8BWYtL1j6wQtqDEj8n3WCB6tSTW7zzOBGHLS2xe85YZ ZLyEgLrEo7+6EJv0JFo+6EBUiEjse/EO7DIJgQmsEh3n5jBB3G8qcWThV5YJjEKzkGyYhWTD LCQbZiGZtYCRZRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcNQ/k9rBuLLB4hCjAAejEg/v BN/mYCHWxLLiytxDjBIczEoivLFMLcFCvCmJlVWpRfnxRaU5qcWHGJOBATCRWUo0OR+YkPJK 4g2NTcyMLI3MLIxMzM1JE1YS5z3Qah0oJJCeWJKanZpakFoEs4WJg1OqgVHqX0dk3YGwPaFN WjkNOepmO/O7d+jJ9C2qPLvkePqtIs3jD08LZsjPrTqt/Lbcpli888usGuVFzZNm6x45IVH8 K7njynSR8+XXZt91v/hQ/8uG1UtnWYREbDr0/fOrZTxbKoTT9lufed4xo33zGqFnb5wvLxNI L9M78v/12W1Gd8xnGwjGapcrsRRnJBpqMRcVJwIAcXa9MD4DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: '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.8 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 81c34f9..3aedf9e 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -1039,11 +1039,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> --- drivers/gpu/drm/armada/armada_crtc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)