]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerStephen Boyd <sboyd@kernel.org>
Fri, 16 Aug 2019 17:20:15 +0000 (10:20 -0700)
commit1a4549c150e27dbc3aea762e879a88209df6d1a5
tree8bde80ccbb1d8fd4279b381745c5a7c1676088d4
parentc8cec4f4af99288acefa2caea77b07e06a32641c
clk: zx296718: Don't reference clk_init_data after registration

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
drivers/clk/zte/clk-zx296718.c