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

clk: hisilicon: 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: 6c81966107dc0 ("clk: hisilicon: Add clock driver for hi3559A SoC")
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220218000922.134857-4-j.neuschaefer@gmx.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jonathan Neuschäfer and committed by
Stephen Boyd
113b261b 3eb00f89

+2 -2
+2 -2
drivers/clk/hisilicon/clk-hi3559a.c
··· 611 612 613 /* shub div clk */ 614 - static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}}; 615 - static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}}; 616 617 static struct hisi_divider_clock hi3559av100_shub_div_clks[] = { 618 { HI3559AV100_SHUB_SPI_SOURCE_CLK, "clk_spi_clk", "shub_clk", 0, 0x20, 24, 2,
··· 611 612 613 /* shub div clk */ 614 + static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}, {/*sentinel*/}}; 615 + static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}, {/*sentinel*/}}; 616 617 static struct hisi_divider_clock hi3559av100_shub_div_clks[] = { 618 { HI3559AV100_SHUB_SPI_SOURCE_CLK, "clk_spi_clk", "shub_clk", 0, 0x20, 24, 2,