mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +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
@ -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 New Issue
Block a user