mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2024-11-23 20:09:51 +00:00
spi: spi_sh_sci.c: use resource_size()
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
82de76513e
commit
76b6fdd35a
@ -148,7 +148,7 @@ static int sh_sci_spi_probe(struct platform_device *dev)
|
||||
ret = -ENOENT;
|
||||
goto err1;
|
||||
}
|
||||
sp->membase = ioremap(r->start, r->end - r->start + 1);
|
||||
sp->membase = ioremap(r->start, resource_size(r));
|
||||
if (!sp->membase) {
|
||||
ret = -ENXIO;
|
||||
goto err1;
|
||||
|
Loading…
Reference in New Issue
Block a user