diff options
author | Stephen Boyd <[email protected]> | 2019-07-31 12:35:17 -0700 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-08-16 10:27:29 -0700 |
commit | 0214f33c4e0e1f5a9a9c3f4881310c61713294e6 (patch) | |
tree | 8ad6b26dc120c4beeaf31eb3a6fe123378636963 /lib/test_overflow.c | |
parent | a7b85ad25a97cf897b4819a121655c483d86156f (diff) |
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 <[email protected]>
Cc: Doug Anderson <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Sylwester Nawrocki <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions