clk: ti: clkctrl: fix setting up clkctrl clocks
authorTero Kristo <t-kristo@ti.com>
Thu, 12 Sep 2019 13:26:04 +0000 (16:26 +0300)
committerTero Kristo <t-kristo@ti.com>
Thu, 31 Oct 2019 13:18:28 +0000 (15:18 +0200)
Apply the proper register function for clkctrl clocks, so they get
registered under the clk_hw_omap list also. This allows checking their
type runtime.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/ti/clkctrl.c

index 975995eea15cb51d64100e625f6b433c34998998..a914df2e9e1b48539283a5dc0320ca0b26a56578 100644 (file)
@@ -622,7 +622,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
                init.ops = &omap4_clkctrl_clk_ops;
                hw->hw.init = &init;
 
-               clk = ti_clk_register(NULL, &hw->hw, init.name);
+               clk = ti_clk_register_omap_hw(NULL, &hw->hw, init.name);
                if (IS_ERR_OR_NULL(clk))
                        goto cleanup;