History

clk: gpio: Really allow an optional clock= DT property

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.

Stephen Boyd committed 10 years ago

Commit 4462b4b1 parent c430daf1 file · +1 −1Browse files

Unified · Split

drivers/clk/clk-gpio.c+1−1
@@ -289,7 +289,7 @@ static void __init of_gpio_clk_setup(struct device_node *node, · 288 unmodified lines
289289
290290 num_parents = of_clk_get_parent_count(node);
291291 if (num_parents < 0)
292− return;
292+ num_parents = 0;
293293
294294 data = kzalloc(sizeof(*data), GFP_KERNEL);
295295 if (!data)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t