From: Tomeu Vizoso Date: Fri, 9 Sep 2016 13:25:06 +0000 (+0200) Subject: clk: rk808: Pass the right pointer as the get_hw context X-Git-Tag: microblaze-4.10-rc1~295^2~49 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=7348b6ce94019548f64d54c6934d5ace3f2b50a9;p=linux-2.6-microblaze.git 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 Fixes: a8b6e85db6a6 ("clk: rk808: Migrate to clk_hw based OF and registration APIs") Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk-rk808.c b/drivers/clk/clk-rk808.c index faa447e191ef..6461f2820a5b 100644 --- a/drivers/clk/clk-rk808.c +++ b/drivers/clk/clk-rk808.c @@ -138,7 +138,7 @@ static int rk808_clkout_probe(struct platform_device *pdev) if (ret) return ret; - return of_clk_add_hw_provider(node, of_clk_rk808_get, &rk808_clkout); + return of_clk_add_hw_provider(node, of_clk_rk808_get, rk808_clkout); } static int rk808_clkout_remove(struct platform_device *pdev)