summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.c
diff options
context:
space:
mode:
authorJiawen Liu <1298662399@qq.com>2026-11-09 17:42:04 +0400
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-19 11:34:30 +0100
commit9df982f1f283d2f2a9aad764dff92e36ed764e16 (patch)
tree838f60732bfa2f8247222153ec3db41aba73e318 /kernel/debug/debug_core.c
parentf94f85f82e042c89a1e64ed3ff1d591a2bccfa7b (diff)
gpio: omap: handle debounce clock preparation failure
omap_gpio_probe() ignores the return value of clk_prepare() for the debounce clock. If preparation fails, the driver still treats debounce as available and may use or unprepare a clock that was not prepared. Use devm_clk_get_prepared() and disable debounce if the clock cannot be obtained or prepared. This keeps the existing behavior for clock lookup failures. Remove both manual clk_unprepare() calls because the managed clock is released on probe failure and device removal. Fixes: 5d9452e7c52a ("gpio: omap: fix clk_prepare/unprepare usage") Suggested-by: Andreas Kemnade <andreas@kemnade.info> Link: https://lore.kernel.org/r/tencent_B4F504456790E8BA3C4EAB80F4BFB6954E08@qq.com Link: https://lkml.rescloud.iu.edu/hypermail/linux/kernel/2412.2/00414.html Signed-off-by: Jiawen Liu <1298662399@qq.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Link: https://patch.msgid.link/tencent_D8A4B6EE90931660EB6F586543FD58110E06@qq.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions