Skip to content
Snippets Groups Projects
Commit 7348b6ce authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Stephen Boyd
Browse files

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: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: a8b6e85d ("clk: rk808: Migrate to clk_hw based OF and
registration APIs")
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent a063c1e1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment