clk: hisilicon: Terminate clk_div_table with sentinel element
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Fri, 18 Feb 2022 00:09:19 +0000 (01:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:48 +0000 (14:23 +0200)
commit0415dce6228c38717bacb8fe4755152eda397c73
tree9cf53c39d6faed457dd47e5fe5a8a84df455fc94
parentf4aee7714a1cc6776eb8f4608d9e88536efc4863
clk: hisilicon: Terminate clk_div_table with sentinel element

[ Upstream commit 113b261bdf2b4fd34e7769a147a7acd0a4d9137f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/hisilicon/clk-hi3559a.c