Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/clk/tenstorrent/atlantis-prcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ static int atlantis_prcm_clocks_register(struct device *dev,
if (!clk_data)
return -ENOMEM;

clk_data->num = num_clks;

for (i = 0; i < data->num; i++) {
struct clk_hw *hw = data->hws[i];
struct atlantis_clk_common *common =
Expand All @@ -809,8 +811,6 @@ static int atlantis_prcm_clocks_register(struct device *dev,
clk_data->hws[common->clkid] = hw;
}

clk_data->num = num_clks;

return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get, clk_data);
}

Expand Down