|
@@ -566,7 +566,7 @@ mpc8xxx_spi_probe(struct device *dev, struct resource *mem, unsigned int irq)
|
|
|
|
|
|
init_completion(&mpc8xxx_spi->done);
|
|
init_completion(&mpc8xxx_spi->done);
|
|
|
|
|
|
- mpc8xxx_spi->base = ioremap(mem->start, mem->end - mem->start + 1);
|
|
|
|
|
|
+ mpc8xxx_spi->base = ioremap(mem->start, resource_size(mem));
|
|
if (mpc8xxx_spi->base == NULL) {
|
|
if (mpc8xxx_spi->base == NULL) {
|
|
ret = -ENOMEM;
|
|
ret = -ENOMEM;
|
|
goto put_master;
|
|
goto put_master;
|