Commit d0b80580 authored by Joey Gouly's avatar Joey Gouly
Browse files

pinctrl: apple: return an error if pinmux is missing in the DT

If of_property_count_u32_elems returned 0, return -EINVAL to indicate
a failure. Previously this would return 0.
Signed-off-by: Joey Gouly's avatarJoey Gouly <>
parent 0625780c
......@@ -119,7 +119,7 @@ static int apple_gpio_dt_node_to_map(struct pinctrl_dev *pctldev,
"missing or empty pinmux property in node %pOFn.\n",
return ret;
return ret ? ret : -EINVAL;
num_pins = ret;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment