clk: renesas: Remove usage of CLK_IS_BASIC
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Nov 2018 19:05:35 +0000 (11:05 -0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 10 Dec 2018 22:43:04 +0000 (14:43 -0800)
This flag doesn't look to be used by any code, just set in various clk
init structures and then never tested again. Remove it from these
drivers as it doesn't provide any benefit.

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: <linux-renesas-soc@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/renesas/clk-div6.c
drivers/clk/renesas/clk-mstp.c
drivers/clk/renesas/r9a06g032-clocks.c
drivers/clk/renesas/rcar-gen3-cpg.c
drivers/clk/renesas/renesas-cpg-mssr.c

index 57c9341643065a9234fcf80514b6eb3a79e639e9..e98a9f5b3c90cc98f9601aa86d5b79937c2bee40 100644 (file)
@@ -274,7 +274,7 @@ struct clk * __init cpg_div6_register(const char *name,
        /* Register the clock. */
        init.name = name;
        init.ops = &cpg_div6_clock_ops;
-       init.flags = CLK_IS_BASIC;
+       init.flags = 0;
        init.parent_names = parent_names;
        init.num_parents = valid_parents;
 
index 1c1768c2cc8251cd2715839f464773ce5b2eb0b5..2ba6105937e33bbea8d9503fe05f41df8149a52f 100644 (file)
@@ -158,7 +158,7 @@ static struct clk * __init cpg_mstp_clock_register(const char *name,
 
        init.name = name;
        init.ops = &cpg_mstp_clock_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        /* INTC-SYS is the module clock of the GIC, and must not be disabled */
        if (!strcmp(name, "intc-sys")) {
                pr_debug("MSTP %s setting CLK_IS_CRITICAL\n", name);
index 6d2b56891559725d3d22bf53444b5854feb37a82..658cb11b6f55cd0701a4c2d3dab1b3adea943804 100644 (file)
@@ -424,7 +424,7 @@ r9a06g032_register_gate(struct r9a06g032_priv *clocks,
 
        init.name = desc->name;
        init.ops = &r9a06g032_clk_gate_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        init.parent_names = parent_name ? &parent_name : NULL;
        init.num_parents = parent_name ? 1 : 0;
 
@@ -595,7 +595,7 @@ r9a06g032_register_div(struct r9a06g032_priv *clocks,
 
        init.name = desc->name;
        init.ops = &r9a06g032_clk_div_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        init.parent_names = parent_name ? &parent_name : NULL;
        init.num_parents = parent_name ? 1 : 0;
 
@@ -683,7 +683,7 @@ r9a06g032_register_bitsel(struct r9a06g032_priv *clocks,
 
        init.name = desc->name;
        init.ops = &clk_bitselect_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        init.parent_names = names;
        init.num_parents = 2;
 
@@ -777,7 +777,7 @@ r9a06g032_register_dualgate(struct r9a06g032_priv *clocks,
 
        init.name = desc->name;
        init.ops = &r9a06g032_clk_dualgate_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        init.parent_names = &parent_name;
        init.num_parents = 1;
        g->hw.init = &init;
index 4ba38f98cc7bab8296631c04e1d3901870e4891e..48e003c69cd1421117f0921e56063ee4b82ae2ad 100644 (file)
@@ -368,7 +368,7 @@ static struct clk * __init cpg_sd_clk_register(const struct cpg_core_clk *core,
 
        init.name = core->name;
        init.ops = &cpg_sd_clock_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        init.parent_names = &parent_name;
        init.num_parents = 1;
 
index f7bb817420b4fdbb681680fb6bed29dbaf8b9bf4..30df0dc853f08c91c17c2a497ad2290ba67f5ec6 100644 (file)
@@ -412,7 +412,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
 
        init.name = mod->name;
        init.ops = &cpg_mstp_clock_ops;
-       init.flags = CLK_IS_BASIC | CLK_SET_RATE_PARENT;
+       init.flags = CLK_SET_RATE_PARENT;
        for (i = 0; i < info->num_crit_mod_clks; i++)
                if (id == info->crit_mod_clks[i]) {
                        dev_dbg(dev, "MSTP %s setting CLK_IS_CRITICAL\n",