]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: spear-keyboard - switch to devm_clk_get_prepared()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 27 Jul 2024 06:36:49 +0000 (08:36 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 28 Jul 2024 23:41:12 +0000 (16:41 -0700)
commit3fe81a56253b25864f15b699609e26c0ccdd9180
tree5f3427023fb09520e2b2d43c1aa0a59edea9666f
parent740ff03d7238214a318cdcfd96dec51832b053d2
Input: spear-keyboard - switch to devm_clk_get_prepared()

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 <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/062986b0a5105cbc61330da0e55b22c00e2c1c4f.1722062145.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/spear-keyboard.c