spi: spi_bfin5xx.c: use resource_size()

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Bryan Wu <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
hartleys 2009-12-14 22:33:43 +00:00 • committed by Grant Likely
commit 74947b8982

View file

@ -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;