From patchwork Mon Sep 2 01:33:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2852641 Return-Path: X-Original-To: patchwork-linux-fbdev@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 37E059F3DC for ; Mon, 2 Sep 2013 01:33:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69FB820260 for ; Mon, 2 Sep 2013 01:33:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77D232025A for ; Mon, 2 Sep 2013 01:33:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753601Ab3IBBdY (ORCPT ); Sun, 1 Sep 2013 21:33:24 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:27988 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752366Ab3IBBdX (ORCPT ); Sun, 1 Sep 2013 21:33:23 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSH000WH5N3FDG0@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Mon, 02 Sep 2013 10:33:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 93.CF.17682.2EAE3225; Mon, 02 Sep 2013 10:33:22 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-27-5223eae23c9d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F1.05.09055.2EAE3225; Mon, 02 Sep 2013 10:33:22 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSH00FYX5NM1I90@mmp2.samsung.com>; Mon, 02 Sep 2013 10:33:22 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Michal Simek' , 'Jingoo Han' Subject: [PATCH] video: xilinxfb: use devm_ioremap_resource() instead of devm_request_and_ioremap() Date: Mon, 02 Sep 2013 10:33:22 +0900 Message-id: <005401cea77c$6925eec0$3b71cc40$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6nfGkNsaH8bQB+SiiLiIftLS/zdQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsVy+t8zY91Hr5SDDKbfkbO4vPASq8WJvg+s Fu9eRlise/iCyWL9/FtsDqwery7cYfHo27KK0eP4je1MHp83yXns/fybJYA1issmJTUnsyy1 SN8ugStj1qlrrAXf2CouzrVoYHzE2sXIwSEhYCIx85tCFyMnkCkmceHeerYuRi4OIYFljBL9 EzYwwtRcbrWCiE9nlLj6ZiMjhPOLUeLb+v+sIN1sAmoSX74cZgexRQR0JCYt6mEGKWIWWMso saYBxOHkEBZIlVj3/BSYzSKgKnHt12Qwm1fAVuLCxDssELagxI/J98BsZgEtifU7jzNB2PIS m9e8ZYa4SF3i0V9diF16Ei/efYMqEZHY9+Id2HESAvvYJU5OPckCsUtA4tvkQywQvbISmw4w Q3wsKXFwxQ2WCYxis5BsnoVk8ywkm2chWbGAkWUVo2hqQXJBcVJ6kZFecWJucWleul5yfu4m RkjU9e1gvHnA+hBjMtD6icxSosn5wKjNK4k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vh7oWxp2/7RXEP/CyjWC6RsOdW3rP/cq+pDxkXLnOx2hlpbZoqr/7kVo8uv2tLcGib1lq77G 7DVrTWfKDCWW4oxEQy3mouJEACyHqDwuAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han Acked-by: Michal Simek --- drivers/video/xilinxfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 6629b29..ed90051 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -260,9 +260,9 @@ static int xilinxfb_assign(struct platform_device *pdev, res = platform_get_resource(pdev, IORESOURCE_MEM, 0); drvdata->regs_phys = res->start; - drvdata->regs = devm_request_and_ioremap(&pdev->dev, res); - if (!drvdata->regs) { - rc = -EADDRNOTAVAIL; + drvdata->regs = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(drvdata->regs)) { + rc = PTR_ERR(drvdata->regs); goto err_region; } }