diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-12 15:12:23 -0400 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-09-24 15:12:54 +0100 |
| commit | 14a7cf1a3730c7c2393ef5a226e90baf61aa8a9f (patch) | |
| tree | 0a2e7b1ed8005186d34c463cdc80d901269e4c7e /tools/perf/scripts/python/task-analyzer.py | |
| parent | 128115b520c6b61afbffd01809cfc3e8cbb78516 (diff) | |
mfd: intel_quark_i2c_gpio: Manage the fixed-rate clock
The I2C clock is allocated by clk_register_fixed_rate(), but cleanup uses
clk_unregister(), leaving the fixed-rate provider allocation behind.
Manage the provider with devm_clk_hw_register_fixed_rate() and its lookup
with devm_clk_hw_register_clkdev(). Managed resources release the lookup
before the provider, after the MFD children have been removed.
Remove the manual clock cleanup and the private structure that only
stored the clock and lookup pointers.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Fixes: 60ae5b9f5cdd ("mfd: intel_quark_i2c_gpio: Add Intel Quark X1000 I2C-GPIO MFD Driver")
Assisted-by: OpenAI:GPT-5.6
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Link: https://patch.msgid.link/20260912191223.46136-1-mhun512@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
