diff mbox

+ mmc-atmel-mcic-use-resource-size.patch added to -mm tree

Message ID 201008271930.o7RJU4v4011402@imap1.linux-foundation.org (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Andrew Morton Aug. 27, 2010, 7:30 p.m. UTC
None
diff mbox

Patch

diff -puN drivers/mmc/host/atmel-mci.c~mmc-atmel-mcic-use-resource-size drivers/mmc/host/atmel-mci.c
--- a/drivers/mmc/host/atmel-mci.c~mmc-atmel-mcic-use-resource-size
+++ a/drivers/mmc/host/atmel-mci.c
@@ -1777,7 +1777,7 @@  static int __init atmci_probe(struct pla
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;