Skip to content

Commit

Permalink
spi: spi_bfin5xx.c: use resource_size()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
hartleys authored and glikely committed Dec 17, 2009
1 parent 905aa0a commit 74947b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 74947b8

Please sign in to comment.