counter: ti-ecap-capture: Add check for clk_enable()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Mon, 4 Nov 2024 19:40:59 +0000 (19:40 +0000)
committerWilliam Breathitt Gray <wbg@kernel.org>
Tue, 5 Nov 2024 00:20:11 +0000 (09:20 +0900)
commit1437d9f1c56fce9c24e566508bce1d218dd5497a
tree63f4fa92b096e5845056716f02d24748771ccb1b
parent842c3755a6bfbfcafa4a1438078d2485a9eb1d87
counter: ti-ecap-capture: Add check for clk_enable()

Add check for the return value of clk_enable() in order to catch the
potential exception.

Fixes: 4e2f42aa00b6 ("counter: ti-ecap-capture: capture driver support for ECAP")
Reviewed-by: Julien Panis <jpanis@baylibre.com>
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Link: https://lore.kernel.org/r/20241104194059.47924-1-jiashengjiangcool@gmail.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
drivers/counter/ti-ecap-capture.c