Commit 63c348cb authored by Jingoo Han's avatar Jingoo Han Committed by Lee Jones
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent dcc21cc0
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -403,17 +403,17 @@ static int micro_probe(struct platform_device *pdev)
	if (!res)
		return -EINVAL;

	micro->base = devm_request_and_ioremap(&pdev->dev, res);
	if (!micro->base)
		return -ENOMEM;
	micro->base = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(micro->base))
		return PTR_ERR(micro->base);

	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
	if (!res)
		return -EINVAL;

	micro->sdlc = devm_request_and_ioremap(&pdev->dev, res);
	if (!micro->sdlc)
		return -ENOMEM;
	micro->sdlc = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(micro->sdlc))
		return PTR_ERR(micro->sdlc);

	micro_reset_comm(micro);