mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
spi: atmel_spi.c: use resource_size()
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
230d42d422
commit
905aa0ae91
1 changed files with 1 additions and 1 deletions
|
@ -788,7 +788,7 @@ static int __init atmel_spi_probe(struct platform_device *pdev)
|
|||
spin_lock_init(&as->lock);
|
||||
INIT_LIST_HEAD(&as->queue);
|
||||
as->pdev = pdev;
|
||||
as->regs = ioremap(regs->start, (regs->end - regs->start) + 1);
|
||||
as->regs = ioremap(regs->start, resource_size(regs));
|
||||
if (!as->regs)
|
||||
goto out_free_buffer;
|
||||
as->irq = irq;
|
||||
|
|
Loading…
Reference in a new issue