Skip to content
Commit 0214f33c authored by Stephen Boyd's avatar Stephen Boyd
Browse files

clk: Overwrite clk_hw::init with NULL during clk_register()



We don't want clk provider drivers to use the init structure after clk
registration time, but we leave a dangling reference to it by means of
clk_hw::init. Let's overwrite the member with NULL during clk_register()
so that this can't be used anymore after registration time.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190731193517.237136-10-sboyd@kernel.org


Reviewed-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
parent a7b85ad2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment