@@ -67,6 +67,10 @@ struct samsung_clk_provider *__init samsung_clk_init(struct device_node *np,
if (!ctx)
panic("could not allocate clock provider context.\n");
+ ctx->clk_ctrl = clk_ctrl_register(NULL);
+ if (!ctx->clk_ctrl)
+ panic("could not allocate clock provider controller.\n");
+
clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL);
if (!clk_table)
panic("could not allocate clock lookup table\n");
@@ -28,6 +28,7 @@ struct samsung_clk_provider {
void __iomem *reg_base;
struct clk_onecell_data clk_data;
spinlock_t lock;
+ struct clk_ctrl *clk_ctrl;
};
/**
Allocate a clock controller and store it in context so it will be passed later for creating clocks. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- drivers/clk/samsung/clk.c | 4 ++++ drivers/clk/samsung/clk.h | 1 + 2 files changed, 5 insertions(+)