mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
mtd: fls_upm.c: use resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
8a19b55818
commit
58e6a84dfb
@ -302,7 +302,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
||||
FSL_UPM_WAIT_WRITE_BYTE;
|
||||
|
||||
fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start,
|
||||
io_res.end - io_res.start + 1);
|
||||
resource_size(&io_res));
|
||||
if (!fun->io_base) {
|
||||
ret = -ENOMEM;
|
||||
goto err2;
|
||||
|
Loading…
Reference in New Issue
Block a user