]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adp5589-keys - use devm_add_action_or_reset() for register clear
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 19 Nov 2020 06:55:39 +0000 (22:55 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 19 Nov 2020 07:18:31 +0000 (23:18 -0800)
commitcf22da4243589188e2d322c150aee5220b033f12
tree72406faef1f5f13dd3e5270e64f2f53889f8acc9
parentc003596fe9573bf96185044ffb99700f29bd0c69
Input: adp5589-keys - use devm_add_action_or_reset() for register clear

The driver clears the general configuration register during the remove()
hook. This should also be done in case the driver exits on error.

This change move the clear of that register to the
devm_add_action_or_reset() hook.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201112074308.71351-6-alexandru.ardelean@analog.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5589-keys.c