mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
spi: spi_mpc8xxx.c: use resource_size()
Signed-off-by: H Hartley Sweeten <[email protected]> Cc: David Brownell <[email protected]> Cc: Kumar Gala <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
74947b8982
commit
82de76513e
1 changed files with 1 additions and 1 deletions
|
|
@ -566,7 +566,7 @@ mpc8xxx_spi_probe(struct device *dev, struct resource *mem, unsigned int irq)
|
|||
|
||||
init_completion(&mpc8xxx_spi->done);
|
||||
|
||||
mpc8xxx_spi->base = ioremap(mem->start, mem->end - mem->start + 1);
|
||||
mpc8xxx_spi->base = ioremap(mem->start, resource_size(mem));
|
||||
if (mpc8xxx_spi->base == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto put_master;
|
||||
|
|
|
|||
Loading…
Reference in a new issue