]> git.baikalelectronics.ru Git - kernel.git/commit
Input: imx_sc_key - use devm_add_action_or_reset() to handle all cleanups
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 13 May 2020 17:15:49 +0000 (10:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 13 May 2020 17:34:58 +0000 (10:34 -0700)
commitf9cf783ed6c483bf8af6e5eaf3bd35b6406ea248
tree624d11dd3b29d23e6bc4156d102806f7727b6d2b
parent4d56119963b00b84970a215e7b710a540d5a5f98
Input: imx_sc_key - use devm_add_action_or_reset() to handle all cleanups

Use devm_add_action_or_reset() to handle all cleanups of failure in
.probe and .remove, then .remove callback can be dropped.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1584082751-17047-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/imx_sc_key.c