Input: atmel_tsadcc - correct call to input_free_device
authorJulia Lawall <julia@diku.dk>
Sun, 15 May 2011 05:22:38 +0000 (22:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 15 May 2011 06:42:41 +0000 (23:42 -0700)
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: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/atmel_tsadcc.c

index 3d9b5166ebe95d79712b9382d4f22ef666386e7c..432c69be6ac61561a383b026eac149588daca99f 100644 (file)
@@ -317,7 +317,7 @@ err_unmap_regs:
 err_release_mem:
        release_mem_region(res->start, resource_size(res));
 err_free_dev:
-       input_free_device(ts_dev->input);
+       input_free_device(input_dev);
 err_free_mem:
        kfree(ts_dev);
        return err;