pinctrl: berlin: Use devm_ioremap_resource()

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Jingoo Han 2014-05-27 15:29:17 +09:00 committed by Linus Walleij
parent 648e42e140
commit 49cfabc20a
3 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,