From: Wolfram Sang Date: Fri, 24 Feb 2012 18:46:32 +0000 (+0100) Subject: misc: fsa9480: Remove obsolete cleanup for clientdata X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef77d83fd7a2f37a20d9e37ac156f18e7e105c75;p=linux-beck.git misc: fsa9480: Remove obsolete cleanup for 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 Acked-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c index 483d6b738095..ac96c3a4034a 100644 --- a/drivers/misc/fsa9480.c +++ b/drivers/misc/fsa9480.c @@ -458,7 +458,6 @@ fail2: if (client->irq) free_irq(client->irq, usbsw); fail1: - i2c_set_clientdata(client, NULL); kfree(usbsw); return ret; } @@ -468,7 +467,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client) struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); if (client->irq) free_irq(client->irq, usbsw); - i2c_set_clientdata(client, NULL); sysfs_remove_group(&client->dev.kobj, &fsa9480_group); device_init_wakeup(&client->dev, 0);