From patchwork Wed Mar 13 05:36:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2261631 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 564E2DF215 for ; Wed, 13 Mar 2013 05:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285Ab3CMFgD (ORCPT ); Wed, 13 Mar 2013 01:36:03 -0400 Received: from mail-bk0-f43.google.com ([209.85.214.43]:34965 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932Ab3CMFgD (ORCPT ); Wed, 13 Mar 2013 01:36:03 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm19so253594bkc.30 for ; Tue, 12 Mar 2013 22:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=GJAbbZSUJpkVugzFmzN9w7Qi1JBGq5WdFP+tynucye0=; b=Y943UlYmUHvzZKGVfevKn/C6p1wi9sWZoc4RAJq0VhL4aNApL6QRu7gNC/btGZpVdd lecfs8MJAV1Vojb3H0FcZWtk/E0oezBvqaoqNKELliRDNYGHU56kWTbJcQOBEBSwCzZX msdChvMPSMtSJjZTnZxGMZU2pwZVLX3boqUdToCvtqmmePlrwRLuvJ4CPl83SC0DNMpk +22rA+k6UxaCHZPUuNGu6J5jA9mDTaFViOrtbv1j6wqZ16hpnG+Ota5rnQL0rO2zzYvH qxpsgeTBD8s7S1Ij3AgUTlRqAbGnJjSmbTiPUsnOFYmbuwF2i8SqjjI4IZHXYQ2bPl0H 2PAg== MIME-Version: 1.0 X-Received: by 10.205.133.1 with SMTP id hw1mr6942667bkc.58.1363152961214; Tue, 12 Mar 2013 22:36:01 -0700 (PDT) Received: by 10.204.30.210 with HTTP; Tue, 12 Mar 2013 22:36:01 -0700 (PDT) Date: Wed, 13 Mar 2013 13:36:01 +0800 Message-ID: Subject: [PATCH] mmc: vt8500: use resource_size() macro From: Wei Yongjun To: linux@prisktech.co.nz, cjb@laptop.org, grant.likely@secretlab.ca, rob.herring@calxeda.com Cc: yongjun_wei@trendmicro.com.cn, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Wei Yongjun Use resource_size function on resource object instead of explicit computation. Signed-off-by: Wei Yongjun --- drivers/mmc/host/wmt-sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index c6d0015..04102d2 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c @@ -925,7 +925,7 @@ static int wmt_mci_remove(struct platform_device *pdev) clk_put(priv->clk_sdmmc); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - release_mem_region(res->start, res->end - res->start + 1); + release_mem_region(res->start, resource_size(res)); mmc_free_host(mmc);