spi: spi_mpc8xxx.c: use resource_size()

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Kumar Gala <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
hartleys 2009-12-14 22:37:15 +00:00 • committed by Grant Likely
commit 82de76513e

View file

@ -566,7 +566,7 @@ mpc8xxx_spi_probe(struct device *dev, struct resource *mem, unsigned int irq)
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) {
ret = -ENOMEM;
goto put_master;