summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx
diff options
context:
space:
mode:
authorAnson Huang <anson.huang@nxp.com>2018-10-17 08:11:59 +0200
committerStephen Boyd <sboyd@kernel.org>2018-10-17 17:26:03 +0200
commitec1893922df19ab69153e21ee4154a937e8a8eeb (patch)
treefe7af7126d7edd838578b6eb9200469a85c520f2 /drivers/clk/imx
parentclk: imx: imx7d: remove clks_init_on array (diff)
downloadlinux-ec1893922df19ab69153e21ee4154a937e8a8eeb.tar.xz
linux-ec1893922df19ab69153e21ee4154a937e8a8eeb.zip
clk: imx: cpu clock should be always critical
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>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r--drivers/clk/imx/clk-cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-cpu.c b/drivers/clk/imx/clk-cpu.c
index 9d46eac87f45..ed1b7e97a0d3 100644
--- a/drivers/clk/imx/clk-cpu.c
+++ b/drivers/clk/imx/clk-cpu.c
@@ -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;