Commit ef77d83fd7a2f37a20d9e37ac156f18e7e105c75
Committed by
Greg Kroah-Hartman
1 parent
838d51bfa3
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/misc/fsa9480.c
... | ... | @@ -458,7 +458,6 @@ |
458 | 458 | if (client->irq) |
459 | 459 | free_irq(client->irq, usbsw); |
460 | 460 | fail1: |
461 | - i2c_set_clientdata(client, NULL); | |
462 | 461 | kfree(usbsw); |
463 | 462 | return ret; |
464 | 463 | } |
... | ... | @@ -468,7 +467,6 @@ |
468 | 467 | struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); |
469 | 468 | if (client->irq) |
470 | 469 | free_irq(client->irq, usbsw); |
471 | - i2c_set_clientdata(client, NULL); | |
472 | 470 | |
473 | 471 | sysfs_remove_group(&client->dev.kobj, &fsa9480_group); |
474 | 472 | device_init_wakeup(&client->dev, 0); |