Skip to content
Closed
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions drivers/clk/microchip/clk-mpfs-ccc.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ static int mpfs_ccc_probe(struct platform_device *pdev)
unsigned int num_clks;
int ret;

num_clks = ARRAY_SIZE(mpfs_ccc_pll_clks) + ARRAY_SIZE(mpfs_ccc_pll0out_clks) +
ARRAY_SIZE(mpfs_ccc_pll1out_clks);
num_clks = CLK_CCC_NUM;

clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hw_data.hws, num_clks),
GFP_KERNEL);
Expand Down
2 changes: 2 additions & 0 deletions include/dt-bindings/clock/microchip,mpfs-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@
#define CLK_CCC_DLL1_OUT0 14
#define CLK_CCC_DLL1_OUT1 15

#define CLK_CCC_NUM 16

#endif /* _DT_BINDINGS_CLK_MICROCHIP_MPFS_H_ */
Loading