From patchwork Tue Mar 22 17:14:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 653111 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2MH8Hda016539 for ; Tue, 22 Mar 2011 17:12:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755185Ab1CVRMA (ORCPT ); Tue, 22 Mar 2011 13:12:00 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:60956 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178Ab1CVRL7 (ORCPT ); Tue, 22 Mar 2011 13:11:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 37FA919BBEE; Tue, 22 Mar 2011 18:11:58 +0100 (CET) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16157-08; Tue, 22 Mar 2011 18:11:53 +0100 (CET) Received: from palace.topps.diku.dk (palace.ekstranet.diku.dk [192.38.115.202]) by mgw2.diku.dk (Postfix) with ESMTP id C526A19BB56; Tue, 22 Mar 2011 18:11:53 +0100 (CET) From: Julia Lawall To: Nicolas Pitre Cc: kernel-janitors@vger.kernel.org, Chris Ball , Andrew Morton , Michal Miroslaw , Anton Vorontsov , "Martin K. Petersen" , Sascha Sommer , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drivers/mmc/host/mvsdio.c: Convert release_resource to release_mem_region Date: Tue, 22 Mar 2011 18:14:53 +0100 Message-Id: <1300814095-25278-1-git-send-email-julia@diku.dk> X-Mailer: git-send-email 1.7.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 22 Mar 2011 17:12:01 +0000 (UTC) diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index a5bf60e..4606087 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -825,7 +825,7 @@ out: iounmap(host->base); } if (r) - release_resource(r); + release_mem_region(r->start, resource_size(r)); if (mmc) mmc_free_host(mmc); @@ -850,7 +850,7 @@ static int __exit mvsd_remove(struct platform_device *pdev) del_timer_sync(&host->timer); mvsd_power_down(host); iounmap(host->base); - release_resource(host->res); + release_mem_region(host->res->start, resource_size(host->res)); mmc_free_host(mmc); } platform_set_drvdata(pdev, NULL);