Commit 119d53d4 authored by Belen Sarabia's avatar Belen Sarabia Committed by Lee Jones

mfd: ipaq-micro: Delete redundant return value check of platform_get_resource()

devm_ioremap_resource does checks on the resource. No need to
duplicate this in the driver.
Signed-off-by: default avatarBelén Sarabia <belensarabia@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 85fdaf8e
...@@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev) ...@@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev)
micro->dev = &pdev->dev; micro->dev = &pdev->dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
return -EINVAL;
micro->base = devm_ioremap_resource(&pdev->dev, res); micro->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(micro->base)) if (IS_ERR(micro->base))
return PTR_ERR(micro->base); return PTR_ERR(micro->base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment