summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9m032.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-04-18 10:00:52 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 18:38:34 +0200
commitb22b9f3200fcde1817e5ccad9b8aaf794fb46119 (patch)
treeb0819ab268328e952d8fd38e56564872df8fe926 /drivers/media/video/mt9m032.c
parent[media] mt9m032: fix compilation breakage (diff)
downloadlinux-b22b9f3200fcde1817e5ccad9b8aaf794fb46119.tar.xz
linux-b22b9f3200fcde1817e5ccad9b8aaf794fb46119.zip
[media] mt9m032: use the available subdev pointer, don't re-calculate it
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/video/mt9m032.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/mt9m032.c b/drivers/media/video/mt9m032.c
index 645973c5feb0..3c1e626139b7 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;