clk: hisilicon: add hisi_clk_alloc function.
authorJiancheng Xue <xuejiancheng@hisilicon.com>
Wed, 15 Jun 2016 06:26:35 +0000 (14:26 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 30 Jun 2016 19:34:19 +0000 (12:34 -0700)
commit322269163a36ac73be403120e046d90d6a1d38f1
treec93a4b973c453b78fc22cd5c1837ff2ba271895b
parent97b7129cd2afb478c4812781470f06d65f458825
clk: hisilicon: add hisi_clk_alloc function.

Before, there was an ordering issue that the clock provider
had been published in hisi_clk_init before it could provide
valid clocks to consumers. hisi_clk_alloc is just used to
allocate memory space for struct hisi_clock_data. It makes
it possible to publish the provider after the clocks are ready.

Signed-off-by: Jiancheng Xue <xuejiancheng@hisilicon.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/hisilicon/clk.c
drivers/clk/hisilicon/clk.h