summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/88pm860x-i2c.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-05-21 00:50:17 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-05-28 01:38:01 +0200
commit28ade0f217a3a3ff992b01e06e6e425c250a8406 (patch)
tree1469b01ab8bda499a2782bc67457e5258dd5d5f1 /drivers/mfd/88pm860x-i2c.c
parent62579266cf9caca5b999560be2b5ceee42fc4d4d (diff)
downloadblackbird-op-linux-28ade0f217a3a3ff992b01e06e6e425c250a8406.tar.gz
blackbird-op-linux-28ade0f217a3a3ff992b01e06e6e425c250a8406.zip
mfd: Remove unneeded and dangerous clearing of clientdata
Unlike real i2c-devices which get detached from the driver, dummy-devices get truly unregistered. So, there has never been a need to clear the clientdata because the device will go away anyhow. For the occasions fixed here, clearing clientdata was even dangerous as the structure was freed already. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/88pm860x-i2c.c')
-rw-r--r--drivers/mfd/88pm860x-i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/88pm860x-i2c.c b/drivers/mfd/88pm860x-i2c.c
index b0bade1881d4..c933b64d1283 100644
--- a/drivers/mfd/88pm860x-i2c.c
+++ b/drivers/mfd/88pm860x-i2c.c
@@ -200,7 +200,6 @@ static int __devexit pm860x_remove(struct i2c_client *client)
pm860x_device_exit(chip);
i2c_unregister_device(chip->companion);
- i2c_set_clientdata(chip->companion, NULL);
i2c_set_clientdata(chip->client, NULL);
i2c_set_clientdata(client, NULL);
kfree(chip);
OpenPOWER on IntegriCloud