|
@@ -1250,7 +1250,7 @@ static int st_pctl_parse_functions(struct device_node *np,
|
|
func = &info->functions[index];
|
|
func = &info->functions[index];
|
|
func->name = np->name;
|
|
func->name = np->name;
|
|
func->ngroups = of_get_child_count(np);
|
|
func->ngroups = of_get_child_count(np);
|
|
- if (func->ngroups <= 0) {
|
|
|
|
|
|
+ if (func->ngroups == 0) {
|
|
dev_err(info->dev, "No groups defined\n");
|
|
dev_err(info->dev, "No groups defined\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|