]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
clk: milbeaut: Don't reference clk_init_data after registration
authorStephen Boyd <sboyd@kernel.org>
Thu, 15 Aug 2019 16:00:17 +0000 (09:00 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 16 Aug 2019 17:20:15 +0000 (10:20 -0700)
commitc8cec4f4af99288acefa2caea77b07e06a32641c
tree913ac90151adc01e5053823dd29674b91edb585b
parent1bc5557a3bffbac6c37c52c0f65ef78bfa147b85
clk: milbeaut: 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: Sugaya Taichi <sugaya.taichi@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190815160020.183334-2-sboyd@kernel.org
drivers/clk/clk-milbeaut.c