ds2782_battery: Fix clientdata on removal
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 1 Apr 2010 10:27:44 +0000 (12:27 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 6 Apr 2010 16:07:05 +0000 (20:07 +0400)
commita009d29ea104c1bd8805a20018469897c2c2263c
tree18b980bf8aecea51f057d7e8c3ab1ffae111213f
parentdb217dece3003df0841bacf9556b5c06aa097dae
ds2782_battery: Fix clientdata on removal

Probably due to a copy & paste bug, clientdata was set again to the data
structure (which is freed immediately afterwards) when it should be
NULLed. Just remove the calls as the i2c-core does this automatically
now.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Ryan Mallon <ryan@bluewatersys.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/ds2782_battery.c