projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e078557
)
Input: tsc2007 - do not leave dangling clientdata pointer
author
Wolfram Sang
<w.sang@pengutronix.de>
Mon, 22 Mar 2010 05:31:26 +0000
(22:31 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 14 Apr 2010 06:26:40 +0000
(23:26 -0700)
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>
drivers/input/touchscreen/tsc2007.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/tsc2007.c
b/drivers/input/touchscreen/tsc2007.c
index be23780e8a3e3b81be9df7b7cd0f8aab86d87e61..769b479fcaa625fb4406096dd84746b89cc877e4 100644
(file)
--- 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)