diff options
author | Vasyl Gomonovych <gomonovych@gmail.com> | 2017-11-21 00:02:55 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-01-08 14:03:34 +0300 |
commit | 263a7c57db8d59f7fdea39ea525f48d3d42ba697 (patch) | |
tree | f8c7ef0a1a68ab2fb003eb30b0e3edea30527532 /drivers/mfd | |
parent | 299fad6b9b6e4b50929861c701af64a36cde0f31 (diff) | |
download | linux-263a7c57db8d59f7fdea39ea525f48d3d42ba697.tar.xz |
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: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/kempld-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c index 55d824b3a808..390b27cb2c2e 100644 --- a/drivers/mfd/kempld-core.c +++ b/drivers/mfd/kempld-core.c @@ -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; |