We mis-merged the original patch from Russell here and so the patch went almost all the way, except that we still failed to probe when there wasn't a clocks property in the DT node. Allow that case by making a negative value from of_clk_get_parent_count() into "no parents", like the original patch did.
Unified · Split
| @@ -289,7 +289,7 @@ static void __init of_gpio_clk_setup(struct device_node *node, · 288 unmodified lines | |||
| 289 | 289 | ||
| 290 | num_parents = of_clk_get_parent_count(node); | 290 | num_parents = of_clk_get_parent_count(node); |
| 291 | if (num_parents < 0) | 291 | if (num_parents < 0) |
| 292 | return; | 292 | num_parents = 0; |
| 293 | 293 | ||
| 294 | data = kzalloc(sizeof(*data), GFP_KERNEL); | 294 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
| 295 | if (!data) | 295 | if (!data) |