Skip to content

Commit 8bed4ed

Browse files
neuschaeferbebarino
authored andcommitted
clk: clps711x: 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: 631c534 ("clk: Add CLPS711X clk driver") Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Link: https://lore.kernel.org/r/20220218000922.134857-5-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 113b261 commit 8bed4ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/clk-clps711x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = {
2828
{ .val = 1, .div = 8, },
2929
{ .val = 2, .div = 2, },
3030
{ .val = 3, .div = 1, },
31+
{ /* sentinel */ }
3132
};
3233

3334
static const struct clk_div_table timer_div_table[] = {
3435
{ .val = 0, .div = 256, },
3536
{ .val = 1, .div = 1, },
37+
{ /* sentinel */ }
3638
};
3739

3840
struct clps711x_clk {

0 commit comments

Comments
 (0)