Message ID | 201008271930.o7RJU6Vh011405@imap1.linux-foundation.org (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff -puN drivers/mmc/host/au1xmmc.c~mmc-au1xmmcc-use-resource_size drivers/mmc/host/au1xmmc.c --- a/drivers/mmc/host/au1xmmc.c~mmc-au1xmmcc-use-resource_size +++ a/drivers/mmc/host/au1xmmc.c @@ -964,7 +964,7 @@ static int __devinit au1xmmc_probe(struc goto out1; } - host->ioarea = request_mem_region(r->start, r->end - r->start + 1, + host->ioarea = request_mem_region(r->start, resource_size(r), pdev->name); if (!host->ioarea) { dev_err(&pdev->dev, "mmio already in use\n");