diff options
author | Stephen Boyd <sboyd@kernel.org> | 2024-03-25 11:41:57 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2024-04-07 19:29:51 -0700 |
commit | 9d05ae531c2cff20d5d527f04e28d28e04379929 (patch) | |
tree | 8392ea057b3a82bbf5c099186ddaf8b7c1c4e8c4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6f63af7511e7058f3fa4ad5b8102210741c9f947 (diff) |
clk: Initialize struct clk_core kref earlier
Initialize this kref once we allocate memory for the struct clk_core so
that we can reuse the release function to free any memory associated
with the structure. This mostly consolidates code, but also clarifies
that the kref lifetime exists once the container structure (struct
clk_core) is allocated instead of leaving it in a half-baked state for
most of __clk_core_init().
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240325184204.745706-4-sboyd@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions