Commit 49cfabc2 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Walleij

pinctrl: berlin: 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 avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 648e42e1
...@@ -243,9 +243,9 @@ static int berlin2_pinctrl_probe(struct platform_device *pdev) ...@@ -243,9 +243,9 @@ static int berlin2_pinctrl_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_request_and_ioremap(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
if (!base) if (IS_ERR(base))
return -EADDRNOTAVAIL; return PTR_ERR(base);
rmconfig->reg_bits = 32, rmconfig->reg_bits = 32,
rmconfig->val_bits = 32, rmconfig->val_bits = 32,
......
...@@ -186,9 +186,9 @@ static int berlin2cd_pinctrl_probe(struct platform_device *pdev) ...@@ -186,9 +186,9 @@ static int berlin2cd_pinctrl_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_request_and_ioremap(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
if (!base) if (IS_ERR(base))
return -EADDRNOTAVAIL; return PTR_ERR(base);
rmconfig->reg_bits = 32, rmconfig->reg_bits = 32,
rmconfig->val_bits = 32, rmconfig->val_bits = 32,
......
...@@ -405,9 +405,9 @@ static int berlin2q_pinctrl_probe(struct platform_device *pdev) ...@@ -405,9 +405,9 @@ static int berlin2q_pinctrl_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_request_and_ioremap(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
if (!base) if (IS_ERR(base))
return -EADDRNOTAVAIL; return PTR_ERR(base);
rmconfig->reg_bits = 32, rmconfig->reg_bits = 32,
rmconfig->val_bits = 32, rmconfig->val_bits = 32,
......
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