clk: ti: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2019 22:12:49 +0000 (15:12 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 16 Aug 2019 17:22:46 +0000 (10:22 -0700)
commite0e04fc866929f58600aad66b969d5e1572f9e54
tree5e97d53e2905a11421cbf14b228dfd5ace064320
parentc42144139a383011327990a8c59a45f81b3493dd
clk: ti: 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: Tero Kristo <t-kristo@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190815221249.53235-1-sboyd@kernel.org
drivers/clk/ti/apll.c
drivers/clk/ti/dpll.c