Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756703Ab3EPIUh (ORCPT ); Thu, 16 May 2013 04:20:37 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:35674 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756267Ab3EPIU2 (ORCPT ); Thu, 16 May 2013 04:20:28 -0400 X-AuditID: cbfee68e-b7f276d000002279-fc-519496a723d6 Date: Thu, 16 May 2013 08:19:51 +0000 (GMT) From: Jingoo Han Subject: Re: [PATCH V2] drivers: mmc: host: use devm_ioremap_resource() To: Laurent Navet , "cjb@laptop.org" Cc: "nico@fluxnic.net" , "andrew@lunn.ch" , "thomas.petazzoni@free-electrons.com" , "jason@lakedaemon.net" , Jingoo Han , "sachin.kamat@linaro.org" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-to: jg1.han@samsung.com MIME-version: 1.0 X-MTR: 20130516081817634@jg1.han Msgkey: 20130516081817634@jg1.han X-EPLocale: en_US.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-EPTrCode: X-EPTrName: X-MLAttribute: X-RootMTR: 20130516081817634@jg1.han X-ParentMTR: X-ArchiveUser: EV X-CPGSPASS: N Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <4876879.136041368692387848.JavaMail.weblogic@epml12> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJsWRmVeSWpSXmKPExsVy+t8zfd0V06YEGhzrYrS4vGsOmwOjx+dN cgGMUQ2MNolFyRmZZakKqXnJ+SmZeem2SqEhbroWSgoZ+cUltkrRRgbGekamJnpGJuZ6lgax VkamSgp5ibmptkoVulC9SgpFyQVAtbmVxUADclL1oOJ6xal5KQ5Z+aUgl+gVJ+YWl+al6yXn 5yoplCXmlAKNUNJPmMqY8bxhK2PBNu6KP+s3Mzcw9nB3MXJyCAkoS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6oP0MgssZ5Zo /jOFFWKZrMS9ybPBenkFBCVOznzCAlIvIaAgsWdPKURYUeJu62cmiBskJO7c3w91D6/EjPan LBC2nMS0r2uYIWxpifOzNjDC3Lz4+2OoOL/Esds7mCDG80o8uR8MM2b35i9sELaAxNQzB6Fa VSVOPngMNZ5PYs3Ct1C2oMTpa93MML33t8wFO40Z6Mwp3Q/ZIWwtiS8/9rGh+4pXwFGioUN8 AqPcLCSZWUi6ZyHpRlazgJFlFaNoakFyQXFSeoWRXnFibnFpXrpecn7uJkZwenq2aAfjv/PW hxgFOBiVeHhPJEwJFGJNLCuuzD3EKMHBrCTCOyMVKMSbklhZlVqUH19UmpNafIgxGRh9E5ml RJPzgakzryTe0NjYxMzE1NzAwsDSnDRhJXHeZ63WgUIC6YklqdmpqQWpRTBbmDg4pRoY2/k9 6j+tOx60Z9KEzKk2kpPj/t36szklMmlVbF/iT2nvo0q8m/aHmIrM17wWnd+amKpz99w+q0uP LvSGXT7E+Zvp4NqKpKNmGy9NjDjyrTNgbr7wLoGXSu8jT4ord0wP+7t8S3Qzz6SJnY8nh7tO MEsR91DJW6rwIu1rd/XTDzzPubfarBR7rcRSnJFoqMVcVJwIABNo2nOTAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id r4G8Kijd020814 Content-Length: 1187 Lines: 38 Thursday, May 16, 2013 5:22 PM, Laurent Navet wrote: > > Replace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource. > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_ioremap_resource.cocci > > Signed-off-by: Laurent Navet Reviewed-by: Jingoo Han --- > drivers/mmc/host/mvsdio.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c > index 8960fc8..a66ee4b 100644 > --- a/drivers/mmc/host/mvsdio.c > +++ b/drivers/mmc/host/mvsdio.c > @@ -758,9 +758,9 @@ static int __init mvsd_probe(struct platform_device *pdev) > > spin_lock_init(&host->lock); > > - host->base = devm_request_and_ioremap(&pdev->dev, r); > - if (!host->base) { > - ret = -ENOMEM; > + host->base = devm_ioremap_resource(&pdev->dev, r); > + if (IS_ERR(host->base)) { > + ret = PTR_ERR(host->base); > goto out; > } > > -- > 1.7.10.4 ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?