Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: rk808: Pass the right pointer as the get_hw context

Right now we are passing a pointer to a pointer to the structure that
will be used to fetch the clk hw, which gets casted later to a pointer
to the structure, thus getting garbage in the hw structs.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: a8b6e85db6a6 ("clk: rk808: Migrate to clk_hw based OF and
registration APIs")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Tomeu Vizoso and committed by
Stephen Boyd
7348b6ce a063c1e1

+1 -1
+1 -1
drivers/clk/clk-rk808.c
··· 138 138 if (ret) 139 139 return ret; 140 140 141 - return of_clk_add_hw_provider(node, of_clk_rk808_get, &rk808_clkout); 141 + return of_clk_add_hw_provider(node, of_clk_rk808_get, rk808_clkout); 142 142 } 143 143 144 144 static int rk808_clkout_remove(struct platform_device *pdev)