Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757927Ab3IBBXT (ORCPT ); Sun, 1 Sep 2013 21:23:19 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12848 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752366Ab3IBBXR (ORCPT ); Sun, 1 Sep 2013 21:23:17 -0400 X-AuditID: cbfee68e-b7f756d000004512-d9-5223e884cdee From: Jingoo Han To: "'Vinod Koul'" Cc: "'Dan Williams'" , linux-kernel@vger.kernel.org, "'Simon Horman'" , "'Guennadi Liakhovetski'" , "'Jingoo Han'" Subject: [PATCH 1/2] dma: sh: use devm_ioremap_resource() instead of devm_request_and_ioremap() Date: Mon, 02 Sep 2013 10:23:15 +0900 Message-id: <004c01cea77a$ffd30030$ff790090$%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: Ac6nev+73G/gftskTrSsjC4jQpqUyA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBIsWRmVeSWpSXmKPExsVy+t8zA92WF8pBBjNvCVps7n/AZnFz+iNm iwtvP7BZXF54idXi8q45bBYv+/azOLB5TGx+x+6xc9Zddo/Fe14yefRtWcXoMefnNxaPz5vk AtiiuGxSUnMyy1KL9O0SuDLaWncwFZxjq/i99iBLA+MF1i5GTg4JAROJz7tamCFsMYkL99az dTFycQgJLGOUePJrJjtM0dfth5kgEosYJVbMmA7l/GKUmNJ8BKydTUBN4suXw0AdHBwiAuoS S6/LgNQwC1xklLi55TkrSFxYIFHixVs7kHIWAVWJ7t+vWEBsXgFbid0zv0LZghI/Jt8Ds5kF tCTW7zzOBGHLS2xe85YZZIwE0PhHf3VBwiICehLXz31ghygRkdj34h0jxM3X2CW+7I+DWCUg 8W3yIRaIVlmJTQeg/pWUOLjiBssERrFZSBbPQrJ4FpLFs5BsWMDIsopRNLU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mn3DqaS9tdUlocG4reHOndqjgacc2CpXsobMYm1jMbT49PMdk8fm+Od8E3+ud9Gv d1x86f4l3QlMXqrSnxg/Hd6i+5alpYtFY+9vzeXsN52Omff8cfb7wX9oX9KZhA0enbdSP/Jk H1lj37Lk/vT5Fb75O059iJXMaDHvVFNiKc5INNRiLipOBABy5ePrOQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 34 Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han --- drivers/dma/sh/sudmac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c index bf85b8e..7c1ffaa 100644 --- a/drivers/dma/sh/sudmac.c +++ b/drivers/dma/sh/sudmac.c @@ -358,9 +358,9 @@ static int sudmac_probe(struct platform_device *pdev) dma_dev = &su_dev->shdma_dev.dma_dev; - su_dev->chan_reg = devm_request_and_ioremap(&pdev->dev, chan); - if (!su_dev->chan_reg) - return err; + su_dev->chan_reg = devm_ioremap_resource(&pdev->dev, chan); + if (IS_ERR(su_dev->chan_reg)) + return PTR_ERR(su_dev->chan_reg); dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/