Message ID | 1290415467.5471.7.camel@mola (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index e15547c..7c7d268 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1297,7 +1297,7 @@ cpu_freq_fail: mmc_free_host(mmc); if (mem) - release_resource(mem); + release_mem_region(mem->start, resource_size(mem)); dev_dbg(&pdev->dev, "probe err %d\n", ret); @@ -1322,7 +1322,8 @@ static int __exit davinci_mmcsd_remove(struct platform_device *pdev) iounmap(host->base); - release_resource(host->mem_res); + release_mem_region(host->mem_res->start, + resource_size(host->mem_res)); mmc_free_host(host->mmc); }