diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-27 08:29:17 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-27 16:03:24 +0200 |
commit | 49cfabc20ac9ab6117093460a5ac418922e8e9b0 (patch) | |
tree | 629f65071a680a25fe7a05c58b3c57788fcd2f65 /drivers/pinctrl/berlin/berlin-bg2.c | |
parent | pinctrl: sirf: fix typo for GPIO bank number (diff) | |
download | linux-49cfabc20ac9ab6117093460a5ac418922e8e9b0.tar.xz linux-49cfabc20ac9ab6117093460a5ac418922e8e9b0.zip |
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>
Diffstat (limited to 'drivers/pinctrl/berlin/berlin-bg2.c')
-rw-r--r-- | drivers/pinctrl/berlin/berlin-bg2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/berlin/berlin-bg2.c b/drivers/pinctrl/berlin/berlin-bg2.c index 0d8fd509ab20..dcd4f6a4fc50 100644 --- a/drivers/pinctrl/berlin/berlin-bg2.c +++ b/drivers/pinctrl/berlin/berlin-bg2.c @@ -243,9 +243,9 @@ static int berlin2_pinctrl_probe(struct platform_device *pdev) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_request_and_ioremap(&pdev->dev, res); - if (!base) - return -EADDRNOTAVAIL; + base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(base)) + return PTR_ERR(base); rmconfig->reg_bits = 32, rmconfig->val_bits = 32, |