From patchwork Thu May 6 08:04:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 97286 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o468FlJi007090 for ; Thu, 6 May 2010 08:15:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753366Ab0EFIPp (ORCPT ); Thu, 6 May 2010 04:15:45 -0400 Received: from mx1.zhaw.ch ([160.85.104.50]:56907 "EHLO mx1.zhaw.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255Ab0EFIPo (ORCPT ); Thu, 6 May 2010 04:15:44 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 06 May 2010 08:15:47 +0000 (UTC) X-Greylist: delayed 674 seconds by postgrey-1.27 at vger.kernel.org; Thu, 06 May 2010 04:15:44 EDT Received: from mx1.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id C14D961E; Thu, 6 May 2010 10:04:08 +0200 (CEST) Received: from localhost.localdomain (inst-232.33.zhaw.ch [160.85.232.33]) by mx1.zhaw.ch (Postfix) with ESMTP id 2FB6A605; Thu, 6 May 2010 10:04:08 +0200 (CEST) From: Tobias Klauser To: jarkko.lavinen@nokia.com Cc: tony@atomide.com, linux-omap@vger.kernel.org, linux-mmc@vger.kernel.org, kernel-janitors@vger.kernel.org, Tobias Klauser Subject: [PATCH] mmci-omap: Use resource_size Date: Thu, 6 May 2010 10:04:19 +0200 Message-Id: <1273133059-6335-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 1.6.3.3 X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.5.6.75416 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, TO_NO_NAME 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 84d2804..a2c8545 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c @@ -1415,7 +1415,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev) if (res == NULL || irq < 0) return -ENXIO; - res = request_mem_region(res->start, res->end - res->start + 1, + res = request_mem_region(res->start, resource_size(res), pdev->name); if (res == NULL) return -EBUSY; @@ -1537,7 +1537,7 @@ static int mmc_omap_remove(struct platform_device *pdev) iounmap(host->virt_base); release_mem_region(pdev->resource[0].start, - pdev->resource[0].end - pdev->resource[0].start + 1); + resource_size(&pdev->resource[0])); kfree(host);