diff options
Diffstat (limited to 'drivers/pinctrl/berlin/berlin-bg2q.c')
-rw-r--r-- | drivers/pinctrl/berlin/berlin-bg2q.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/berlin/berlin-bg2q.c b/drivers/pinctrl/berlin/berlin-bg2q.c index ab33a3b6005..9fcf9836045 100644 --- a/drivers/pinctrl/berlin/berlin-bg2q.c +++ b/drivers/pinctrl/berlin/berlin-bg2q.c @@ -405,9 +405,9 @@ static int berlin2q_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, |