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)
commit768062fd1284529212daffd360314e9aa93abb62
tree624d11dd3b29d23e6bc4156d102806f7727b6d2b
parent2ecf9487a7c86e033bab007d63d61f2ec2ca093f
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