clk: ti: move omap2_clk_enable_init_clocks under clock driver
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / clock.c
index 42ce860e1d4c1f69b745ab2ed1c46599aa9fc22b..234cedf8967d3a4b8dca3f4ef0ca3d674ba5c06c 100644 (file)
@@ -576,30 +576,6 @@ static int __init omap_clk_setup(char *str)
 }
 __setup("mpurate=", omap_clk_setup);
 
-/**
- * omap2_clk_enable_init_clocks - prepare & enable a list of clocks
- * @clk_names: ptr to an array of strings of clock names to enable
- * @num_clocks: number of clock names in @clk_names
- *
- * Prepare and enable a list of clocks, named by @clk_names.  No
- * return value. XXX Deprecated; only needed until these clocks are
- * properly claimed and enabled by the drivers or core code that uses
- * them.  XXX What code disables & calls clk_put on these clocks?
- */
-void omap2_clk_enable_init_clocks(const char **clk_names, u8 num_clocks)
-{
-       struct clk *init_clk;
-       int i;
-
-       for (i = 0; i < num_clocks; i++) {
-               init_clk = clk_get(NULL, clk_names[i]);
-               if (WARN(IS_ERR(init_clk), "could not find init clock %s\n",
-                               clk_names[i]))
-                       continue;
-               clk_prepare_enable(init_clk);
-       }
-}
-
 const struct clk_hw_omap_ops clkhwops_wait = {
        .find_idlest    = omap2_clk_dflt_find_idlest,
        .find_companion = omap2_clk_dflt_find_companion,