summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/edt-ft5x06.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-09-08 16:20:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-09-08 16:20:59 -0700
commit11be4bc6a1ee7a824237e63b59d228956aa8c2a7 (patch)
treeb65c611a805e045aff76c9fa94e7dd92b731808a /drivers/input/touchscreen/edt-ft5x06.c
parent5b6e7f1c169db10632459c28f148011e039187bd (diff)
parent6f4d0382e2a6d27045e223d8c452659477826650 (diff)
downloadlinux-3.10-11be4bc6a1ee7a824237e63b59d228956aa8c2a7.tar.gz
linux-3.10-11be4bc6a1ee7a824237e63b59d228956aa8c2a7.tar.bz2
linux-3.10-11be4bc6a1ee7a824237e63b59d228956aa8c2a7.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: wacom - add support for EMR on Cintiq 24HD touch Input: i8042 - add Gigabyte T1005 series netbooks to noloop table Input: imx_keypad - reset the hardware before enabling Input: edt-ft5x06 - fix build error when compiling wthout CONFIG_DEBUG_FS
Diffstat (limited to 'drivers/input/touchscreen/edt-ft5x06.c')
-rw-r--r--drivers/input/touchscreen/edt-ft5x06.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
index 9afc777a40a..b06a5e3a665 100644
--- a/drivers/input/touchscreen/edt-ft5x06.c
+++ b/drivers/input/touchscreen/edt-ft5x06.c
@@ -602,6 +602,7 @@ edt_ft5x06_ts_teardown_debugfs(struct edt_ft5x06_ts_data *tsdata)
{
if (tsdata->debug_dir)
debugfs_remove_recursive(tsdata->debug_dir);
+ kfree(tsdata->raw_buffer);
}
#else
@@ -843,7 +844,6 @@ static int __devexit edt_ft5x06_ts_remove(struct i2c_client *client)
if (gpio_is_valid(pdata->reset_pin))
gpio_free(pdata->reset_pin);
- kfree(tsdata->raw_buffer);
kfree(tsdata);
return 0;