]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/mt9t031.c
i2c: Remove all i2c_set_clientdata(client, NULL) in drivers
[net-next-2.6.git] / drivers / media / video / mt9t031.c
index 78b4e091d2d5f527dd76db13a072bb339289fa84..9f5ff2547f1993bde3f594aa95bf4bb11d23c50d 100644 (file)
@@ -883,7 +883,6 @@ static int mt9t031_probe(struct i2c_client *client,
        if (ret) {
                if (icd)
                        icd->ops = NULL;
-               i2c_set_clientdata(client, NULL);
                kfree(mt9t031);
        }
 
@@ -897,7 +896,6 @@ static int mt9t031_remove(struct i2c_client *client)
 
        if (icd)
                icd->ops = NULL;
-       i2c_set_clientdata(client, NULL);
        client->driver = NULL;
        kfree(mt9t031);