diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2026-06-10 11:05:13 +0800 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-06-16 14:40:00 +0200 |
| commit | e43f32816a1b1fe5a86279411626fe3a9be56d45 (patch) | |
| tree | 37618eb89836bb62581c42b1f46a1aa901b00c69 /rust/kernel/drm/gpuvm/git@git.tavy.me:linux.git | |
| parent | f0285c286bca5a1e018ba25040cef6c7806c31ef (diff) | |
i2c: davinci: Unregister cpufreq notifier on probe failure
davinci_i2c_probe() registers a cpufreq transition notifier before adding
the I2C adapter. If i2c_add_numbered_adapter() fails, the probe error path
releases the device resources without unregistering the notifier.
Add a dedicated error path to unregister the cpufreq notifier after
i2c_add_numbered_adapter() fails.
Fixes: 82c0de11b734 ("i2c: davinci: Add cpufreq support")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Cc: <stable@vger.kernel.org> # v2.6.36+
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260610030513.2651018-1-haoxiang_li2024@163.com
Diffstat (limited to 'rust/kernel/drm/gpuvm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
