From: Guennadi Liakhovetski Date: Wed, 18 Apr 2012 08:00:52 +0000 (-0300) Subject: [media] mt9m032: use the available subdev pointer, don't re-calculate it X-Git-Tag: staging/for_v3.5~223 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b22b9f3200fcde1817e5ccad9b8aaf794fb46119;p=profile%2Fivi%2Fkernel-x86-ivi.git [media] mt9m032: use the available subdev pointer, don't re-calculate it Signed-off-by: Guennadi Liakhovetski Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/mt9m032.c index 645973c..3c1e626 100644 --- a/drivers/media/video/mt9m032.c +++ b/drivers/media/video/mt9m032.c @@ -838,9 +838,9 @@ static int mt9m032_remove(struct i2c_client *client) struct v4l2_subdev *subdev = i2c_get_clientdata(client); struct mt9m032 *sensor = to_mt9m032(subdev); - v4l2_device_unregister_subdev(&sensor->subdev); + v4l2_device_unregister_subdev(subdev); v4l2_ctrl_handler_free(&sensor->ctrls); - media_entity_cleanup(&sensor->subdev.entity); + media_entity_cleanup(&subdev->entity); mutex_destroy(&sensor->lock); kfree(sensor); return 0;