Commit 215ef986 authored by Julia Lawall's avatar Julia Lawall Committed by Dmitry Torokhov

Input: atmel_tsadcc - correct call to input_free_device

This error handling code can be reached before ts_dev->input is
initialized, so it is safer to always use the original name,
input_dev.
Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 36682b81
...@@ -317,7 +317,7 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev) ...@@ -317,7 +317,7 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev)
err_release_mem: err_release_mem:
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
err_free_dev: err_free_dev:
input_free_device(ts_dev->input); input_free_device(input_dev);
err_free_mem: err_free_mem:
kfree(ts_dev); kfree(ts_dev);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment