aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi_mpc8xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c
index 1d98be9b1946..797226cb7ef1 100644
--- a/drivers/spi/spi_mpc8xxx.c
+++ b/drivers/spi/spi_mpc8xxx.c
@@ -566,7 +566,7 @@ mpc8xxx_spi_probe(struct device *dev, struct resource *mem, unsigned int irq)
566 566
567 init_completion(&mpc8xxx_spi->done); 567 init_completion(&mpc8xxx_spi->done);
568 568
569 mpc8xxx_spi->base = ioremap(mem->start, mem->end - mem->start + 1); 569 mpc8xxx_spi->base = ioremap(mem->start, resource_size(mem));
570 if (mpc8xxx_spi->base == NULL) { 570 if (mpc8xxx_spi->base == NULL) {
571 ret = -ENOMEM; 571 ret = -ENOMEM;
572 goto put_master; 572 goto put_master;