Thread (2 messages) 2 messages, 2 authors, 2024-07-29

Re: [PATCH v2] Input: spear-keyboard - Switch to devm_clk_get_prepared()

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2024-07-29 00:00:27
Also in: kernel-janitors, lkml

On Sat, Jul 27, 2024 at 08:36:49AM +0200, Christophe JAILLET wrote:
Use devm_clk_get_prepared() in order to remove a clk_unprepare() in an
error handling path of the probe and from the .remove() function.

This done, the whole .remove() function can also be axed because
'input_dev' is a managed resource allocated with
devm_input_allocate_device() and we can fully rely on devm for cleaning up.

Signed-off-by: Christophe JAILLET <redacted>
Applied, thank you.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help