Skip to content

Commit 869bd27

Browse files
mripardbebarino
authored andcommitted
clk: bcm: rpi: Statically init clk_init_data
Instead of declaring the clk_init_data and then calling memset on it, just initialise properly. Cc: Michael Turquette <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: [email protected] Acked-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/0342572daa561dc1bb4c9fd10641b2016493e32b.1592210452.git-series.maxime@cerno.tech Signed-off-by: Stephen Boyd <[email protected]>
1 parent fbac2e7 commit 869bd27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/bcm/clk-raspberrypi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,10 @@ static const struct clk_ops raspberrypi_firmware_pll_clk_ops = {
175175

176176
static int raspberrypi_register_pllb(struct raspberrypi_clk *rpi)
177177
{
178+
struct clk_init_data init = {};
178179
u32 min_rate = 0, max_rate = 0;
179-
struct clk_init_data init;
180180
int ret;
181181

182-
memset(&init, 0, sizeof(init));
183182

184183
/* All of the PLLs derive from the external oscillator. */
185184
init.parent_names = (const char *[]){ "osc" };

0 commit comments

Comments
 (0)