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

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: b4626a7f4892 ("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>

authored by

Jonathan Neuschäfer and committed by
Stephen Boyd
3eb00f89 d8a441e5

+1
+1
drivers/clk/loongson1/clk-loongson1c.c
··· 37 37 [1] = { .val = 1, .div = 4 }, 38 38 [2] = { .val = 2, .div = 3 }, 39 39 [3] = { .val = 3, .div = 3 }, 40 + [4] = { /* sentinel */ } 40 41 }; 41 42 42 43 void __init ls1x_clk_init(void)