Skip to content

Commit

Permalink
clk: actions: Terminate clk_div_table with sentinel element
Browse files Browse the repository at this point in the history
[ Upstream commit d8a441e53e2434b1401e52dfd66b05263e442edc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
neuschaefer authored and gregkh committed Apr 15, 2022
1 parent 50b48ba commit 1d04467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/clk/actions/owl-s700.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static struct clk_div_table hdmia_div_table[] = {

static struct clk_div_table rmii_div_table[] = {
{0, 4}, {1, 10},
{0, 0}
};

/* divider clocks */
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/actions/owl-s900.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static struct clk_div_table rmii_ref_div_table[] = {

static struct clk_div_table usb3_mac_div_table[] = {
{ 1, 2 }, { 2, 3 }, { 3, 4 },
{ 0, 8 },
{ 0, 0 }
};

static struct clk_div_table i2s_div_table[] = {
Expand Down

0 comments on commit 1d04467

Please sign in to comment.