Input: snvs_pwrkey - drop input_free_device call if input_register_device fails
authorAxel Lin <axel.lin@ingics.com>
Fri, 23 Sep 2016 22:01:07 +0000 (15:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 27 Sep 2016 03:01:59 +0000 (20:01 -0700)
commitd095c500fd79421f915cea26925677cd16ecd623
tree8e810c93079e454f5dbcbcc7eb83c7fa4caf805b
parent9ca5bf5029b6c17ce50b34581242f71f9b777ae7
Input: snvs_pwrkey - drop input_free_device call if input_register_device fails

Current code uses devm_input_allocate_device() so don't explicitly call
input_free_device if input_register_device fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/snvs_pwrkey.c