clk: zx296718: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2019 16:00:18 +0000 (09:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:08 +0000 (18:59 +0200)
commitfa702b72cbf97ba42c7a599f28a09e6b9cd529ce
tree3e9f27587f9791858a3c1b6c206ced8034817e27
parent5772dedde98759dbbf4a5da527b0c8dfcc4f1311
clk: zx296718: Don't reference clk_init_data after registration

[ Upstream commit 1a4549c150e27dbc3aea762e879a88209df6d1a5 ]

A future patch is going to change semantics of clk_register() so that
clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid
referencing this member here so that we don't run into NULL pointer
exceptions.

Cc: Jun Nie <jun.nie@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190815160020.183334-3-sboyd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/zte/clk-zx296718.c