rpmsgclk: allow client to disable clk of server
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
872913e67b
commit
a44f498842
2 changed files with 2 additions and 3 deletions
|
@ -679,7 +679,7 @@ static int __clk_disable(FAR struct clk_s *clk)
|
|||
}
|
||||
}
|
||||
|
||||
return clk->enable_count + 1;
|
||||
return clk->enable_count;
|
||||
}
|
||||
|
||||
static void clk_init_parent(FAR struct clk_s *clk)
|
||||
|
|
|
@ -902,8 +902,7 @@ FAR struct clk_s *clk_register_rpmsg(FAR const char *name, uint8_t flags)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return clk_register(name, NULL, 0, flags | CLK_IS_CRITICAL,
|
||||
&g_clk_rpmsg_ops, NULL, 0);
|
||||
return clk_register(name, NULL, 0, flags, &g_clk_rpmsg_ops, NULL, 0);
|
||||
}
|
||||
|
||||
int clk_rpmsg_server_initialize(void)
|
||||
|
|
Loading…
Reference in a new issue