Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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: f6475e298297 ("clk: berlin: Migrate to clk_hw based registration and OF APIs")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

+2 -2
+1 -1
drivers/clk/berlin/bg2.c
··· 685 685 } 686 686 687 687 /* register clk-provider */ 688 - of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &clk_data); 688 + of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); 689 689 690 690 return; 691 691
+1 -1
drivers/clk/berlin/bg2q.c
··· 382 382 } 383 383 384 384 /* register clk-provider */ 385 - of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &clk_data); 385 + of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); 386 386 387 387 return; 388 388