aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2012-02-24 13:46:32 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 17:16:42 -0500
commitef77d83fd7a2f37a20d9e37ac156f18e7e105c75 (patch)
treebd362d099250a7526d2c2d9ac6d0ac610ae62606 /drivers/misc
parent838d51bfa31540d474b9562056379b6325ec07d7 (diff)
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 <w.sang@pengutronix.de> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/fsa9480.c2
1 files changed, 0 insertions, 2 deletions
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:
458 if (client->irq) 458 if (client->irq)
459 free_irq(client->irq, usbsw); 459 free_irq(client->irq, usbsw);
460fail1: 460fail1:
461 i2c_set_clientdata(client, NULL);
462 kfree(usbsw); 461 kfree(usbsw);
463 return ret; 462 return ret;
464} 463}
@@ -468,7 +467,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client)
468 struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); 467 struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client);
469 if (client->irq) 468 if (client->irq)
470 free_irq(client->irq, usbsw); 469 free_irq(client->irq, usbsw);
471 i2c_set_clientdata(client, NULL);
472 470
473 sysfs_remove_group(&client->dev.kobj, &fsa9480_group); 471 sysfs_remove_group(&client->dev.kobj, &fsa9480_group);
474 device_init_wakeup(&client->dev, 0); 472 device_init_wakeup(&client->dev, 0);