arm/common/scoop.c: use resource_size()
H Hartley Sweeten
hartleys at visionengravers.com
Mon Nov 23 11:45:25 EST 2009
Use resource_size() macro for ioremap.
Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
---
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
index 7713a08..f598035 100644
--- a/arch/arm/common/scoop.c
+++ b/arch/arm/common/scoop.c
@@ -193,7 +193,7 @@ static int __devinit scoop_probe(struct platform_device *pdev)
spin_lock_init(&devptr->scoop_lock);
inf = pdev->dev.platform_data;
- devptr->base = ioremap(mem->start, mem->end - mem->start + 1);
+ devptr->base = ioremap(mem->start, resource_size(mem));
if (!devptr->base) {
ret = -ENOMEM;
More information about the linux-arm-kernel
mailing list