]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/imx074.c
[media] media: video: do not clear 'driver' from an i2c_client
[~andy/linux] / drivers / media / video / imx074.c
index 27b5dfdfbb931253fb3f02567084e39ecd97858c..b9c91c1839f8cefc98f429d6e3b2120be188090d 100644 (file)
@@ -467,7 +467,7 @@ static int imx074_remove(struct i2c_client *client)
        icd->ops = NULL;
        if (icl->free_bus)
                icl->free_bus(icl);
-       client->driver = NULL;
+       i2c_set_clientdata(client, NULL);
        kfree(priv);
 
        return 0;