Input: bfin_rotary - switch to using devm_add_action_or_reset()
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:36:25 +0000 (11:36 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:11 +0000 (11:49 -0800)
commit0265c324b8a2bbe502fee3007361d310de3b6d0c
tree217345b048992a4ce1f78aee4694af10078d3245
parentad03ae44baeb82b28024c8c582e18146b96d637e
Input: bfin_rotary - switch to using devm_add_action_or_reset()

Use local variable 'dev' instead of dereferencing it several times and
replace devm_add_action() and manual error handling with
devm_add_action_or_reset().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/bfin_rotary.c