i2c: Remove obsolete cleanup for clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer on exit. This is obsolete meanwhile, so fix it and hope the word will spread. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Este cometimento está contido em:

cometido por
Jean Delvare

ascendente
4193d91635
cometimento
59bfee6e06
@@ -268,7 +268,6 @@ out_irq:
|
||||
free_irq(client->irq, client);
|
||||
|
||||
out_free:
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(ds3232);
|
||||
return ret;
|
||||
}
|
||||
@@ -287,7 +286,6 @@ static int __devexit ds3232_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
rtc_device_unregister(ds3232->rtc);
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(ds3232);
|
||||
return 0;
|
||||
}
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador