diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-01-24 05:44:27 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:44 -0400 |
commit | ce5d4a435af2839771210aeda2b649f5a183b63c (patch) | |
tree | fac6f23c20a9027f69ca9b423dec97072fedd832 /drivers/mfd/wl1273-core.c | |
parent | b103e0b3c52e6edb4839ccc961cf335ca6b88918 (diff) |
mfd: Remove obsolete cleanup for wl1273 clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wl1273-core.c')
-rw-r--r-- | drivers/mfd/wl1273-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/wl1273-core.c b/drivers/mfd/wl1273-core.c index d2ecc2435736..6bb51364dcb4 100644 --- a/drivers/mfd/wl1273-core.c +++ b/drivers/mfd/wl1273-core.c | |||
@@ -38,7 +38,6 @@ static int wl1273_core_remove(struct i2c_client *client) | |||
38 | dev_dbg(&client->dev, "%s\n", __func__); | 38 | dev_dbg(&client->dev, "%s\n", __func__); |
39 | 39 | ||
40 | mfd_remove_devices(&client->dev); | 40 | mfd_remove_devices(&client->dev); |
41 | i2c_set_clientdata(client, NULL); | ||
42 | kfree(core); | 41 | kfree(core); |
43 | 42 | ||
44 | return 0; | 43 | return 0; |
@@ -104,7 +103,6 @@ static int __devinit wl1273_core_probe(struct i2c_client *client, | |||
104 | return 0; | 103 | return 0; |
105 | 104 | ||
106 | err: | 105 | err: |
107 | i2c_set_clientdata(client, NULL); | ||
108 | pdata->free_resources(); | 106 | pdata->free_resources(); |
109 | kfree(core); | 107 | kfree(core); |
110 | 108 | ||