summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/mvebu/armada-xp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/mvebu/armada-xp.c')
-rw-r--r--drivers/pinctrl/mvebu/armada-xp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/mvebu/armada-xp.c b/drivers/pinctrl/mvebu/armada-xp.c
index 9f79d373e4..8c71867a7d 100644
--- a/drivers/pinctrl/mvebu/armada-xp.c
+++ b/drivers/pinctrl/mvebu/armada-xp.c
@@ -375,8 +375,8 @@ static int armada_xp_pinctrl_probe(struct device_d *dev)
struct mvebu_pinctrl_soc_info *soc = &armada_xp_pinctrl_info;
mpp_base = dev_request_mem_region(dev, 0);
- if (!mpp_base)
- return -EBUSY;
+ if (IS_ERR(mpp_base))
+ return PTR_ERR(mpp_base);
soc->variant = (enum armada_xp_variant)match->data;