]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
clk: imx: cpu clock should be always critical
authorAnson Huang <anson.huang@nxp.com>
Wed, 17 Oct 2018 06:11:59 +0000 (06:11 +0000)
committerStephen Boyd <sboyd@kernel.org>
Wed, 17 Oct 2018 15:26:03 +0000 (08:26 -0700)
Add CLK_IS_CRITICAL flag for cpu clock type to
make cpu clock use count correct, as cpu clock
should be always critical.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-cpu.c

index 9d46eac87f45e7f4ec0e2f72aba0b179b574b9a6..ed1b7e97a0d351cb8519986117857e4d9e1b9141 100644 (file)
@@ -94,7 +94,7 @@ struct clk *imx_clk_cpu(const char *name, const char *parent_name,
 
        init.name = name;
        init.ops = &clk_cpu_ops;
-       init.flags = 0;
+       init.flags = CLK_IS_CRITICAL;
        init.parent_names = &parent_name;
        init.num_parents = 1;