diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-09-23 15:01:07 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-09-26 20:01:59 -0700 |
commit | d095c500fd79421f915cea26925677cd16ecd623 (patch) | |
tree | 8e810c93079e454f5dbcbcc7eb83c7fa4caf805b /drivers/input | |
parent | 9ca5bf5029b6c17ce50b34581242f71f9b777ae7 (diff) | |
download | linux-d095c500fd79421f915cea26925677cd16ecd623.tar.bz2 |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/snvs_pwrkey.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/keyboard/snvs_pwrkey.c index 24a9f599082f..7544888c4749 100644 --- a/drivers/input/keyboard/snvs_pwrkey.c +++ b/drivers/input/keyboard/snvs_pwrkey.c @@ -168,7 +168,6 @@ static int imx_snvs_pwrkey_probe(struct platform_device *pdev) error = input_register_device(input); if (error < 0) { dev_err(&pdev->dev, "failed to register input device\n"); - input_free_device(input); return error; } |