Skip to content

Commit d8a441e

Browse files
neuschaeferbebarino
authored andcommitted
clk: actions: 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). In owl-s900.s, the { 0, 8 } element was probably meant to be just that, so this patch changes { 0, 8 } to { 0, 0 }. Fixes: d47317c ("clk: actions: Add S700 SoC clock support") Fixes: d85d200 ("clk: actions: Add S900 SoC clock support") Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://lore.kernel.org/r/20220218000922.134857-2-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e783362 commit d8a441e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/clk/actions/owl-s700.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static struct clk_div_table hdmia_div_table[] = {
162162

163163
static struct clk_div_table rmii_div_table[] = {
164164
{0, 4}, {1, 10},
165+
{0, 0}
165166
};
166167

167168
/* divider clocks */

drivers/clk/actions/owl-s900.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static struct clk_div_table rmii_ref_div_table[] = {
140140

141141
static struct clk_div_table usb3_mac_div_table[] = {
142142
{ 1, 2 }, { 2, 3 }, { 3, 4 },
143-
{ 0, 8 },
143+
{ 0, 0 }
144144
};
145145

146146
static struct clk_div_table i2s_div_table[] = {

0 commit comments

Comments
 (0)