]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: hisilicon: Remove usage of CLK_IS_BASIC
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Nov 2018 19:07:30 +0000 (11:07 -0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 10 Dec 2018 22:43:21 +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: Jiancheng Xue <xuejiancheng@hisilicon.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Jianguo Sun <sunjianguo1@huawei.com>
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/hisilicon/clk-hi3620.c
drivers/clk/hisilicon/clk-hisi-phase.c
drivers/clk/hisilicon/clk-hix5hd2.c
drivers/clk/hisilicon/clkgate-separated.c

index 77072c7778b9ca5bae9c01592f4ef781f68b6f35..2eda9bdf6d03d5f6503cf3aa2bb033e5626f367b 100644 (file)
@@ -435,7 +435,7 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk,
 
        init.name = mmc_clk->name;
        init.ops = &clk_mmc_ops;
-       init.flags = mmc_clk->flags | CLK_IS_BASIC;
+       init.flags = mmc_clk->flags;
        init.parent_names = (mmc_clk->parent_name ? &mmc_clk->parent_name : NULL);
        init.num_parents = (mmc_clk->parent_name ? 1 : 0);
        mclk->hw.init = &init;
index 5bce9297b78b16a1aa6002a7edab8711b61ba945..5fdc267bb2da6b9a4107566ba8d69dc5141a11a8 100644 (file)
@@ -103,7 +103,7 @@ struct clk *clk_register_hisi_phase(struct device *dev,
 
        init.name = clks->name;
        init.ops = &clk_phase_ops;
-       init.flags = clks->flags | CLK_IS_BASIC;
+       init.flags = clks->flags;
        init.parent_names = clks->parent_names ? &clks->parent_names : NULL;
        init.num_parents = clks->parent_names ? 1 : 0;
 
index 9584f0c32dda985528b65baa83ef646ff9654b81..659bd5f493b8c8cd49005bd291602a63f421f198 100644 (file)
@@ -274,7 +274,7 @@ hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums,
                else
                        init.ops = &clk_complex_ops;
 
-               init.flags = CLK_IS_BASIC;
+               init.flags = 0;
                init.parent_names =
                        (clks[i].parent_name ? &clks[i].parent_name : NULL);
                init.num_parents = (clks[i].parent_name ? 1 : 0);
index f36bdef9183178f21f1a33327b4e8b586f611345..ae84884dc749636553c22ab1e7546ae82c4531df 100644 (file)
@@ -110,7 +110,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name,
 
        init.name = name;
        init.ops = &clkgate_separated_ops;
-       init.flags = flags | CLK_IS_BASIC;
+       init.flags = flags;
        init.parent_names = (parent_name ? &parent_name : NULL);
        init.num_parents = (parent_name ? 1 : 0);