summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorhartleys <hartleys@visionengravers.com>2009-12-14 22:37:15 +0000
committerGrant Likely <grant.likely@secretlab.ca>2009-12-17 09:00:02 -0700
commit82de76513eeb35b93a591497dcff217f2ec76041 (patch)
tree767956010f36661700fd6c2fbb79764d7f63ced8 /drivers
parent74947b898220c8af794f3de3f3c73a39799b4c4f (diff)
downloadlinux-82de76513eeb35b93a591497dcff217f2ec76041.tar.bz2
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')
-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)
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;