diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-nomadik.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 1bb16ffb4e41..96e7cfbbce6d 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c | |||
@@ -1367,9 +1367,9 @@ static int nmk_gpio_probe(struct platform_device *dev) | |||
1367 | goto out; | 1367 | goto out; |
1368 | } | 1368 | } |
1369 | 1369 | ||
1370 | base = devm_request_and_ioremap(&dev->dev, res); | 1370 | base = devm_ioremap_resource(&dev->dev, res); |
1371 | if (!base) { | 1371 | if (IS_ERR(base)) { |
1372 | ret = -ENOMEM; | 1372 | ret = PTR_ERR(base); |
1373 | goto out; | 1373 | goto out; |
1374 | } | 1374 | } |
1375 | 1375 | ||