clk: rk808: Pass the right pointer as the get_hw context
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 9 Sep 2016 13:25:06 +0000 (15:25 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 9 Sep 2016 18:07:07 +0000 (11:07 -0700)
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>
drivers/clk/clk-rk808.c

index faa447e191ef746c4d8cd9fa682c0a61e194debe..6461f2820a5b184d202e093970d6fdcfad1a130e 100644 (file)
@@ -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)