Message ID | 1291760974-11859-1-git-send-email-dacohen@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/media/video/ov9640.c b/drivers/media/video/ov9640.c index 99e9e1d..1315696 100644 --- a/drivers/media/video/ov9640.c +++ b/drivers/media/video/ov9640.c @@ -791,7 +791,8 @@ static int ov9640_probe(struct i2c_client *client, static int ov9640_remove(struct i2c_client *client) { - struct ov9640_priv *priv = i2c_get_clientdata(client); + struct v4l2_subdev *sd = i2c_get_clientdata(client); + struct ov9640_priv *priv = container_of(sd, struct ov9640_priv, subdev); kfree(priv); return 0;