Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 263a7c57 authored by Vasyl Gomonovych's avatar Vasyl Gomonovych Committed by Lee Jones
Browse files

mfd: kempld-core: Use resource_size function on resource object



drivers/mfd/kempld-core.c:461:13-16: WARNING: Suspicious code. resource_size is maybe missing with ioport

Generated by: scripts/coccinelle/api/resource_size.cocci

Signed-off-by: default avatarVasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 299fad6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -458,7 +458,7 @@ static int kempld_probe(struct platform_device *pdev)
		return -EINVAL;

	pld->io_base = devm_ioport_map(dev, ioport->start,
					ioport->end - ioport->start);
					resource_size(ioport));
	if (!pld->io_base)
		return -ENOMEM;