rpmsgclk: allow client to disable clk of server

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2023-07-13 12:18:38 +08:00 committed by Xiang Xiao
parent 872913e67b
commit a44f498842
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -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)