Merge tag 'pci-v3.17-changes-3' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / pinctrl / pinctrl-imx1-core.c
index 815384b377b5fc192a4cdab6eba6c413e62c53fd..483420757c9fa811049cb3fd4669448b688e1805 100644 (file)
@@ -526,7 +526,7 @@ static int imx1_pinctrl_parse_functions(struct device_node *np,
        /* Initialise function */
        func->name = np->name;
        func->num_groups = of_get_child_count(np);
-       if (func->num_groups <= 0)
+       if (func->num_groups == 0)
                return -EINVAL;
 
        func->groups = devm_kzalloc(info->dev,