summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-03-22 08:31:26 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-04-14 10:26:40 +0400
commitd6372b706e83817dfa6c9326d1054b9b95a7de2a (patch)
treea990b24def32765e5acfaa9c8dfbc8a956d3fda1 /drivers/input/touchscreen
parente0785572ce8620beb117530645e6989d2217d3b7 (diff)
downloadlinux-d6372b706e83817dfa6c9326d1054b9b95a7de2a.tar.xz
Input: tsc2007 - do not leave dangling clientdata pointer
Do not leave dangling client data pointers when unbinding device from the driver. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/tsc2007.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index be23780e8a3e..769b479fcaa6 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -347,6 +347,8 @@ static int __devexit tsc2007_remove(struct i2c_client *client)
struct tsc2007 *ts = i2c_get_clientdata(client);
struct tsc2007_platform_data *pdata = client->dev.platform_data;
+ i2c_set_clientdata(client, NULL);
+
tsc2007_free_irq(ts);
if (pdata->exit_platform_hw)