[PATCH] Input: tegra-kbc - correct call to input_free_device

From: Axel Lin
Date: Wed Jul 20 2011 - 03:53:12 EST

This error handling code can be reached before kbc->idev is
initialized, so it is safer to always use the original name,

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
drivers/input/keyboard/tegra-kbc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 2b3b73e..8e40f2b 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -701,7 +701,7 @@ err_iounmap:
release_mem_region(res->start, resource_size(res));
- input_free_device(kbc->idev);
+ input_free_device(input_dev);

return err;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/