projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74947b8
)
spi: spi_mpc8xxx.c: use resource_size()
author
hartleys
<hartleys@visionengravers.com>
Mon, 14 Dec 2009 22:37:15 +0000
(22:37 +0000)
committer
Grant Likely
<grant.likely@secretlab.ca>
Thu, 17 Dec 2009 16:00:02 +0000
(09:00 -0700)
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>
drivers/spi/spi_mpc8xxx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi_mpc8xxx.c
b/drivers/spi/spi_mpc8xxx.c
index
1d98be9
..
797226c
100644
(file)
--- 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;