diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c index a24448e5d399..946d594a64dd 100644 --- a/drivers/pinctrl/pinctrl-imx.c +++ b/drivers/pinctrl/pinctrl-imx.c | |||
@@ -515,7 +515,7 @@ static int imx_pinctrl_parse_functions(struct device_node *np, | |||
515 | /* Initialise function */ | 515 | /* Initialise function */ |
516 | func->name = np->name; | 516 | func->name = np->name; |
517 | func->num_groups = of_get_child_count(np); | 517 | func->num_groups = of_get_child_count(np); |
518 | if (func->num_groups <= 0) { | 518 | if (func->num_groups == 0) { |
519 | dev_err(info->dev, "no groups defined in %s\n", np->full_name); | 519 | dev_err(info->dev, "no groups defined in %s\n", np->full_name); |
520 | return -EINVAL; | 520 | return -EINVAL; |
521 | } | 521 | } |