From patchwork Thu Sep 12 06:46:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2876571 Return-Path: X-Original-To: patchwork-linux-mmc@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 CFF419F486 for ; Thu, 12 Sep 2013 07:04:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDB51202D9 for ; Thu, 12 Sep 2013 07:04:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5466C202C8 for ; Thu, 12 Sep 2013 07:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754845Ab3ILHEo (ORCPT ); Thu, 12 Sep 2013 03:04:44 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:51129 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754786Ab3ILHEn (ORCPT ); Thu, 12 Sep 2013 03:04:43 -0400 Received: by mail-pb0-f44.google.com with SMTP id xa7so10197780pbc.17 for ; Thu, 12 Sep 2013 00:04:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O9i70HC2c5jDYSw4OJkMFwBlkLkgJMXV7KZsA6GzCxI=; b=GGlOoY2plN+PCv0YLMElLDnodhex2+TNMxwUCUgSILPeHcBzh3byvPFJVVKFhNyrm7 ou2XIxLuphvlBck+Aq0cxPxAXgPGxuGWG1gb41uBNJp4hWZyQyCVHBkzYyxwaW6MDKKG LUOIGfJy94WdcJH+8PLAzVdngW5Z3E6D6kBxOJRXGaO2EvTmwImHK7WXCHaqodEZI8+I mfI+ejKcf6pGk9+YzbGK/+NA2ggwClV8B7UZOktCWigKk73a/vAb4WIYE49LZ6sK7gS/ o5OsiyhAaTyKx5MSw5Gv5G0HapxTbLWIskbd39vSzlMhxW1S0QMxghL+NtXgX09DPQF9 SUUQ== X-Gm-Message-State: ALoCoQk+wk6vwH+xdTo4bVA8A/erT9Uc7YuY7xyV0hx08YZsBQ+AYlxfSZTq0JQRVUZdrd2xvs0p X-Received: by 10.68.232.225 with SMTP id tr1mr5859417pbc.143.1378969482886; Thu, 12 Sep 2013 00:04:42 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id 7sm8574488paf.22.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Sep 2013 00:04:42 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: tgih.jun@samsung.com, jh80.chung@samsung.com, cjb@laptop.org, nico@fluxnic.net, sachin.kamat@linaro.org Subject: [PATCH 1/3] mmc: mvsdio: Convert to devm_ioremap_resource Date: Thu, 12 Sep 2013 12:16:34 +0530 Message-Id: <1378968396-18604-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource() instead. Signed-off-by: Sachin Kamat --- 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 06c5b0b..a592407 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -775,9 +775,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; }