summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/ti/pinctrl-ti-iodelay.c')
-rw-r--r--drivers/pinctrl/ti/pinctrl-ti-iodelay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
index e5e7f1f22813..b522ca010332 100644
--- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
+++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
@@ -496,7 +496,7 @@ static int ti_iodelay_dt_node_to_map(struct pinctrl_dev *pctldev,
return -EINVAL;
rows = pinctrl_count_index_with_args(np, name);
- if (rows == -EINVAL)
+ if (rows < 0)
return rows;
*map = devm_kzalloc(iod->dev, sizeof(**map), GFP_KERNEL);