Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756153Ab3EPINS (ORCPT ); Thu, 16 May 2013 04:13:18 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:35855 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753399Ab3EPINM (ORCPT ); Thu, 16 May 2013 04:13:12 -0400 From: Laurent Navet To: nico@fluxnic.net, cjb@laptop.org Cc: andrew@lunn.ch, thomas.petazzoni@free-electrons.com, jason@lakedaemon.net, jg1.han@samsung.com, sachin.kamat@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Navet Subject: [PATCH V2] drivers: mmc: host: use devm_ioremap_resource() Date: Thu, 16 May 2013 10:22:01 +0200 Message-Id: <1368692521-16991-2-git-send-email-laurent.navet@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368692521-16991-1-git-send-email-laurent.navet@gmail.com> References: <1368692521-16991-1-git-send-email-laurent.navet@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 35 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 --- 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 -- 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/