summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-01-24 11:44:27 +0100
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-03-25 17:57:59 -0400
commit7f5e31d5297dbdfe59da114e21e599c7b69ac7e1 (patch)
tree3c7c3a344c6e5f5dd27fb20f401e6cac90001f2b
parent8112bcfdf60ba176123f4f00cd066a20dd0b56f2 (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> (cherry picked from commit ce5d4a435af2839771210aeda2b649f5a183b63c)
-rw-r--r--drivers/mfd/wl1273-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/wl1273-core.c b/drivers/mfd/wl1273-core.c
index d2ecc243573..6bb51364dcb 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)
dev_dbg(&client->dev, "%s\n", __func__);
mfd_remove_devices(&client->dev);
- i2c_set_clientdata(client, NULL);
kfree(core);
return 0;
@@ -104,7 +103,6 @@ static int __devinit wl1273_core_probe(struct i2c_client *client,
return 0;
err:
- i2c_set_clientdata(client, NULL);
pdata->free_resources();
kfree(core);