From patchwork Mon Jun 10 11:35:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17720 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6A9A25DF9 for ; Mon, 10 Jun 2013 11:50:02 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id fo12sf5145568lab.9 for ; Mon, 10 Jun 2013 04:50:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=bhT+ZOmDH10zmARShRkfvcD3HsBmAhSzrCLzNQDv0zs=; b=oiCQs0oIr84dr7GRo2HhdYHB3lahf978IPLsuJkOCKaWj5coSw/IQWzwW06DsghB/q vwJyLDNcSUQPFsGv8HOlI9XNTczk3d/Vyw3rLZ96LLITHd7B2hoQnK2n4O3Dc+oAV+c0 aA5DnlO+DUzY/S9FENneslJgb6t1Do6ax0CjqgJPO8UKed7Rd0mXQbWB//NWlb2r9PlV C5DafoESVw0zwly4btbF8b75Pr7C7OI3vqfISeMjsrrkBIZwuND0XWKdxPMV63lH82c3 Ee23aaISyQKskgAMqYIIVmE7S26yHFQLW4U8BvIRAMRgvBDIMf8vSHVj15uCdvG0zwGM ipYQ== X-Received: by 10.180.11.232 with SMTP id t8mr3444871wib.3.1370865001009; Mon, 10 Jun 2013 04:50:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.36.201 with SMTP id s9ls776712wij.43.gmail; Mon, 10 Jun 2013 04:50:00 -0700 (PDT) X-Received: by 10.180.81.169 with SMTP id b9mr4510778wiy.12.1370865000845; Mon, 10 Jun 2013 04:50:00 -0700 (PDT) Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [2607:f8b0:400c:c01::234]) by mx.google.com with ESMTPS id hy9si3454483wjb.10.2013.06.10.04.50.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:00 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::234; Received: by mail-ve0-f180.google.com with SMTP id pa12so4592800veb.25 for ; Mon, 10 Jun 2013 04:49:59 -0700 (PDT) X-Received: by 10.58.106.77 with SMTP id gs13mr5337090veb.22.1370864999772; Mon, 10 Jun 2013 04:49:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp64952vcb; Mon, 10 Jun 2013 04:49:59 -0700 (PDT) X-Received: by 10.68.251.133 with SMTP id zk5mr9671343pbc.75.1370864998879; Mon, 10 Jun 2013 04:49:58 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id av8si4677206pbd.159.2013.06.10.04.49.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id 14so4646291pdj.26 for ; Mon, 10 Jun 2013 04:49:58 -0700 (PDT) X-Received: by 10.66.252.195 with SMTP id zu3mr13869073pac.185.1370864998406; Mon, 10 Jun 2013 04:49:58 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id rn7sm10242037pbc.12.2013.06.10.04.49.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:57 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, linux-mmc@vger.kernel.org, Chris Ball Subject: [PATCH 03/15] mmc: mvsdio: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:01 +0530 Message-Id: <1370864113-17895-4-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> References: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQm9opvYo+mieTAZ/1J1ztIOOGlXP3a6/ECu4zSDj5zehlD2/mXVAbpEKh2N3NGn5zeh0Tsa X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") introduced devm_ioremap_resource() and deprecated the use of devm_request_and_ioremap(). Signed-off-by: Tushar Behera CC: linux-mmc@vger.kernel.org CC: Chris Ball --- 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 d08fe6a..656f1f5 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; }