mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Acked-by: Alan Cox <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
0143832cc9
commit
dc6641be0e
4 changed files with 0 additions and 8 deletions
|
|
@ -451,7 +451,6 @@ static int imx074_probe(struct i2c_client *client,
|
|||
ret = imx074_video_probe(icd, client);
|
||||
if (ret < 0) {
|
||||
icd->ops = NULL;
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(priv);
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -468,7 +467,6 @@ static int imx074_remove(struct i2c_client *client)
|
|||
icd->ops = NULL;
|
||||
if (icl->free_bus)
|
||||
icl->free_bus(icl);
|
||||
i2c_set_clientdata(client, NULL);
|
||||
client->driver = NULL;
|
||||
kfree(priv);
|
||||
|
||||
|
|
|
|||
|
|
@ -1174,7 +1174,6 @@ static int ov6650_probe(struct i2c_client *client,
|
|||
|
||||
if (ret) {
|
||||
icd->ops = NULL;
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(priv);
|
||||
}
|
||||
|
||||
|
|
@ -1185,7 +1184,6 @@ static int ov6650_remove(struct i2c_client *client)
|
|||
{
|
||||
struct ov6650 *priv = to_ov6650(client);
|
||||
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(priv);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue