Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[muen/linux.git] / drivers / clk / mvebu / clk-cpu.c
index d1a7157..c2af339 100644 (file)
@@ -181,7 +181,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
                pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n",
                        __func__);
 
-       for_each_node_by_type(dn, "cpu")
+       for_each_of_cpu_node(dn)
                ncpus++;
 
        cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL);
@@ -192,7 +192,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
        if (WARN_ON(!clks))
                goto clks_out;
 
-       for_each_node_by_type(dn, "cpu") {
+       for_each_of_cpu_node(dn) {
                struct clk_init_data init;
                struct clk *clk;
                char *clk_name = kzalloc(5, GFP_KERNEL);