aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorhartleys <hartleys@visionengravers.com>2009-12-14 17:37:15 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-17 11:00:02 -0500
commit82de76513eeb35b93a591497dcff217f2ec76041 (patch)
tree767956010f36661700fd6c2fbb79764d7f63ced8 /drivers/spi
parent74947b898220c8af794f3de3f3c73a39799b4c4f (diff)
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')
-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;