提交 63c348cb 编写于 作者: J Jingoo Han 提交者: Lee Jones

mfd: ipaq-micro: Use devm_ioremap_resource()

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 dcc21cc0
...@@ -403,17 +403,17 @@ static int micro_probe(struct platform_device *pdev) ...@@ -403,17 +403,17 @@ static int micro_probe(struct platform_device *pdev)
if (!res) if (!res)
return -EINVAL; return -EINVAL;
micro->base = devm_request_and_ioremap(&pdev->dev, res); micro->base = devm_ioremap_resource(&pdev->dev, res);
if (!micro->base) if (IS_ERR(micro->base))
return -ENOMEM; return PTR_ERR(micro->base);
res = platform_get_resource(pdev, IORESOURCE_MEM, 1); res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
if (!res) if (!res)
return -EINVAL; return -EINVAL;
micro->sdlc = devm_request_and_ioremap(&pdev->dev, res); micro->sdlc = devm_ioremap_resource(&pdev->dev, res);
if (!micro->sdlc) if (IS_ERR(micro->sdlc))
return -ENOMEM; return PTR_ERR(micro->sdlc);
micro_reset_comm(micro); micro_reset_comm(micro);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册