aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhartleys <hartleys@visionengravers.com>2009-12-14 22:33:43 +0000
committerGrant Likely <grant.likely@secretlab.ca>2009-12-17 08:59:50 -0700
commit74947b898220c8af794f3de3f3c73a39799b4c4f (patch)
tree61317e78a98386a38802641c187e10055c81c6d3
parent905aa0ae91798feb4e12d6237496d269dc2f4962 (diff)
spi: spi_bfin5xx.c: use resource_size()
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: Bryan Wu <cooloney@kernel.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r--drivers/spi/spi_bfin5xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 73e24ef5a2f..1d41058bbab 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -1294,7 +1294,7 @@ static int __init bfin_spi_probe(struct platform_device *pdev)
goto out_error_get_res;
}
- drv_data->regs_base = ioremap(res->start, (res->end - res->start + 1));
+ drv_data->regs_base = ioremap(res->start, resource_size(res));
if (drv_data->regs_base == NULL) {
dev_err(dev, "Cannot map IO\n");
status = -ENXIO;