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)
commit30df385e35a48f773b85117fc490152c2395e45b
tree72406faef1f5f13dd3e5270e64f2f53889f8acc9
parent74f2c59324a3cb0e69937c2289a13f36231a6f3e
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