“bef01c0915c30ca68e06169346b54a038c005ec7”上不存在“...javax/git@gitcode.net:openanolis/dragonwell8_jdk.git”
提交 3ca0b51d 编写于 作者: S Stephen Boyd

clk: berlin: Pass correct type to hw provider registration

Dan Carpenter reports that we're passing a pointer to a pointer
here when we should just be passing a pointer. Pass the right
pointer so that the of_clk_hw_onecell_get() sees the appropriate
data pointer on its end.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Cc: Jisheng Zhang <jszhang@marvell.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Fixes: f6475e29 ("clk: berlin: Migrate to clk_hw based registration and OF APIs")
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 10f2bfb0
...@@ -685,7 +685,7 @@ static void __init berlin2_clock_setup(struct device_node *np) ...@@ -685,7 +685,7 @@ static void __init berlin2_clock_setup(struct device_node *np)
} }
/* register clk-provider */ /* register clk-provider */
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &clk_data); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
return; return;
......
...@@ -382,7 +382,7 @@ static void __init berlin2q_clock_setup(struct device_node *np) ...@@ -382,7 +382,7 @@ static void __init berlin2q_clock_setup(struct device_node *np)
} }
/* register clk-provider */ /* register clk-provider */
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &clk_data); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册