Skip to content

Commit

Permalink
clk: berlin: Pass correct type to hw provider registration
Browse files Browse the repository at this point in the history
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: Dan 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: f6475e2 ("clk: berlin: Migrate to clk_hw based registration and OF APIs")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Stephen Boyd committed Nov 16, 2016
1 parent 10f2bfb commit 3ca0b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/berlin/bg2.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ static void __init berlin2_clock_setup(struct device_node *np)
}

/* 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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/berlin/bg2q.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static void __init berlin2q_clock_setup(struct device_node *np)
}

/* 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;

Expand Down

0 comments on commit 3ca0b51

Please sign in to comment.