clk: meson: meson8b: use of_clk_hw_register to register the clocks
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 17 Nov 2019 13:59:27 +0000 (14:59 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 11 Dec 2019 13:06:31 +0000 (14:06 +0100)
Switch from clk_hw_register to of_clk_hw_register so we can use
clk_parent_data.fw_name. This will be used to get the "xtal", "ddr_pll"
and possibly others from the .dtb.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/meson8b.c

index 44e97bacd628b907d49da7ab4fb926fbb08e3b19..3408297bff651455f88253065af460f2198cbea0 100644 (file)
@@ -3701,7 +3701,7 @@ static void __init meson8b_clkc_init_common(struct device_node *np,
                if (!clk_hw_onecell_data->hws[i])
                        continue;
 
-               ret = clk_hw_register(NULL, clk_hw_onecell_data->hws[i]);
+               ret = of_clk_hw_register(np, clk_hw_onecell_data->hws[i]);
                if (ret)
                        return;
        }