projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/spi/spi_mpc8xxx.c
b/drivers/spi/spi_mpc8xxx.c
index 1d98be9b1946e41e04dc59005024414e8db4c036..797226cb7ef1f01613dd63f3226220b94e104a2a 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;