diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-06-30 18:07:09 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-06-30 18:07:09 -0400 |
| commit | 08fa16b6b75005c120b59d00ae42a0b7cc68db45 (patch) | |
| tree | c5f22412467f72dd0c7291bbb958a9485e894f02 /drivers/input/touchscreen | |
| parent | 1796b983cc4cbbed5e9e478b03591609a2c21987 (diff) | |
| parent | 7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff) | |
Merge commit 'v2.6.35-rc3' into next
Diffstat (limited to 'drivers/input/touchscreen')
| -rw-r--r-- | drivers/input/touchscreen/ad7879.c | 5 | ||||
| -rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 2 | ||||
| -rw-r--r-- | drivers/input/touchscreen/mcs5000_ts.c | 1 | ||||
| -rw-r--r-- | drivers/input/touchscreen/tsc2007.c | 2 |
4 files changed, 1 insertions, 9 deletions
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 794d070c6900..4b32fb4704cd 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c | |||
| @@ -812,10 +812,8 @@ static int __devinit ad7879_probe(struct i2c_client *client, | |||
| 812 | ts->bus = client; | 812 | ts->bus = client; |
| 813 | 813 | ||
| 814 | error = ad7879_construct(client, ts); | 814 | error = ad7879_construct(client, ts); |
| 815 | if (error) { | 815 | if (error) |
| 816 | i2c_set_clientdata(client, NULL); | ||
| 817 | kfree(ts); | 816 | kfree(ts); |
| 818 | } | ||
| 819 | 817 | ||
| 820 | return error; | 818 | return error; |
| 821 | } | 819 | } |
| @@ -825,7 +823,6 @@ static int __devexit ad7879_remove(struct i2c_client *client) | |||
| 825 | struct ad7879 *ts = dev_get_drvdata(&client->dev); | 823 | struct ad7879 *ts = dev_get_drvdata(&client->dev); |
| 826 | 824 | ||
| 827 | ad7879_destroy(client, ts); | 825 | ad7879_destroy(client, ts); |
| 828 | i2c_set_clientdata(client, NULL); | ||
| 829 | kfree(ts); | 826 | kfree(ts); |
| 830 | 827 | ||
| 831 | return 0; | 828 | return 0; |
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 75f8b73010fa..7a3a916f84a8 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c | |||
| @@ -238,7 +238,6 @@ err2: | |||
| 238 | input = NULL; /* so we dont try to free it below */ | 238 | input = NULL; /* so we dont try to free it below */ |
| 239 | err1: | 239 | err1: |
| 240 | input_free_device(input); | 240 | input_free_device(input); |
| 241 | i2c_set_clientdata(client, NULL); | ||
| 242 | kfree(priv); | 241 | kfree(priv); |
| 243 | err0: | 242 | err0: |
| 244 | return err; | 243 | return err; |
| @@ -256,7 +255,6 @@ static int __devexit eeti_ts_remove(struct i2c_client *client) | |||
| 256 | enable_irq(priv->irq); | 255 | enable_irq(priv->irq); |
| 257 | 256 | ||
| 258 | input_unregister_device(priv->input); | 257 | input_unregister_device(priv->input); |
| 259 | i2c_set_clientdata(client, NULL); | ||
| 260 | kfree(priv); | 258 | kfree(priv); |
| 261 | 259 | ||
| 262 | return 0; | 260 | return 0; |
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index ce8ab0269f6f..1fb0c2f06a44 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c | |||
| @@ -256,7 +256,6 @@ static int __devexit mcs5000_ts_remove(struct i2c_client *client) | |||
| 256 | free_irq(client->irq, data); | 256 | free_irq(client->irq, data); |
| 257 | input_unregister_device(data->input_dev); | 257 | input_unregister_device(data->input_dev); |
| 258 | kfree(data); | 258 | kfree(data); |
| 259 | i2c_set_clientdata(client, NULL); | ||
| 260 | 259 | ||
| 261 | return 0; | 260 | return 0; |
| 262 | } | 261 | } |
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c index 769b479fcaa6..be23780e8a3e 100644 --- a/drivers/input/touchscreen/tsc2007.c +++ b/drivers/input/touchscreen/tsc2007.c | |||
| @@ -347,8 +347,6 @@ static int __devexit tsc2007_remove(struct i2c_client *client) | |||
| 347 | struct tsc2007 *ts = i2c_get_clientdata(client); | 347 | struct tsc2007 *ts = i2c_get_clientdata(client); |
| 348 | struct tsc2007_platform_data *pdata = client->dev.platform_data; | 348 | struct tsc2007_platform_data *pdata = client->dev.platform_data; |
| 349 | 349 | ||
| 350 | i2c_set_clientdata(client, NULL); | ||
| 351 | |||
| 352 | tsc2007_free_irq(ts); | 350 | tsc2007_free_irq(ts); |
| 353 | 351 | ||
| 354 | if (pdata->exit_platform_hw) | 352 | if (pdata->exit_platform_hw) |
