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

[ Upstream commit 3eb00f89162e80083dfcaa842468b510462cfeaa ]

In order that the end of a clk_div_table can be detected, it must be
terminated with a sentinel element (.div = 0).

Fixes: b4626a7f4892 ("CLK: Add Loongson1C clock support")
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Link: https://lore.kernel.org/r/20220218000922.134857-3-j.neuschaefer@gmx.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/loongson1/clk-loongson1c.c