Skip to content

Commit 42b565d

Browse files
Wolfram Sanggregkh
authored andcommitted
staging/olpc_dcon: 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: Andres Salomon <dilinger@queued.net> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Marek Belisko <marek.belisko@open-nandra.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 1c2de3e commit 42b565d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/staging/olpc_dcon/olpc_dcon.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ static int dcon_probe(struct i2c_client *client, const struct i2c_device_id *id)
697697
eirq:
698698
free_irq(DCON_IRQ, dcon);
699699
einit:
700-
i2c_set_clientdata(client, NULL);
701700
kfree(dcon);
702701
return rc;
703702
}
@@ -706,8 +705,6 @@ static int dcon_remove(struct i2c_client *client)
706705
{
707706
struct dcon_priv *dcon = i2c_get_clientdata(client);
708707

709-
i2c_set_clientdata(client, NULL);
710-
711708
fb_unregister_client(&dcon->fbevent_nb);
712709
unregister_reboot_notifier(&dcon->reboot_nb);
713710
atomic_notifier_chain_unregister(&panic_notifier_list, &dcon_panic_nb);

0 commit comments

Comments
 (0)