提交 119d53d4 编写于 作者: B Belen Sarabia 提交者: 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: NBelén Sarabia <belensarabia@gmail.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 85fdaf8e
......@@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev)
micro->dev = &pdev->dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
return -EINVAL;
micro->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(micro->base))
return PTR_ERR(micro->base);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册