|
@@ -2228,13 +2228,13 @@ EXPORT_SYMBOL_GPL(of_clk_get_parent_name);
|
|
|
*/
|
|
|
void __init of_clk_init(const struct of_device_id *matches)
|
|
|
{
|
|
|
+ const struct of_device_id *match;
|
|
|
struct device_node *np;
|
|
|
|
|
|
if (!matches)
|
|
|
matches = __clk_of_table;
|
|
|
|
|
|
- for_each_matching_node(np, matches) {
|
|
|
- const struct of_device_id *match = of_match_node(matches, np);
|
|
|
+ for_each_matching_node_and_match(np, matches, &match) {
|
|
|
of_clk_init_cb_t clk_init_cb = match->data;
|
|
|
clk_init_cb(np);
|
|
|
}
|