Skip to content

Commit 3eb00f8

Browse files
neuschaeferbebarino
authored andcommitted
clk: loongson1: Terminate clk_div_table with sentinel element
In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: b4626a7 ("CLK: Add Loongson1C clock support") Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Link: https://lore.kernel.org/r/20220218000922.134857-3-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent d8a441e commit 3eb00f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/loongson1/clk-loongson1c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static const struct clk_div_table ahb_div_table[] = {
3737
[1] = { .val = 1, .div = 4 },
3838
[2] = { .val = 2, .div = 3 },
3939
[3] = { .val = 3, .div = 3 },
40+
[4] = { /* sentinel */ }
4041
};
4142

4243
void __init ls1x_clk_init(void)

0 commit comments

Comments
 (0)