]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
clk: sirf: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Wed, 31 Jul 2019 19:35:13 +0000 (12:35 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 16 Aug 2019 17:20:07 +0000 (10:20 -0700)
commitaf55dadfbce35b4f4c6247244ce3e44b2e242b84
tree66b0fc762cb7093e4f6caf8baeabcf009c45dcc8
parentaf884a5dfdef06644bdbd7d54ca865616f24b256
clk: sirf: 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: Guo Zeng <Guo.Zeng@csr.com>
Cc: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190731193517.237136-6-sboyd@kernel.org
drivers/clk/sirf/clk-common.c