diff options
author | hartleys <hartleys@visionengravers.com> | 2009-12-14 22:37:15 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-17 09:00:02 -0700 |
commit | 82de76513eeb35b93a591497dcff217f2ec76041 (patch) | |
tree | 767956010f36661700fd6c2fbb79764d7f63ced8 /drivers/spi/spi_mpc8xxx.c | |
parent | 74947b898220c8af794f3de3f3c73a39799b4c4f (diff) | |
download | op-kernel-dev-82de76513eeb35b93a591497dcff217f2ec76041.zip op-kernel-dev-82de76513eeb35b93a591497dcff217f2ec76041.tar.gz |
spi: spi_mpc8xxx.c: use resource_size()
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi_mpc8xxx.c')
-rw-r--r-- | drivers/spi/spi_mpc8xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c index 1d98be9..797226c 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) 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; |