summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-29 22:36:50 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-29 22:36:50 +0200
commitc83c64ea49e5de51e8b0a6245c1f31c040d97e9d (patch)
tree41cddae7602e80056614bccd741e69bb8019102f /linux/drivers/media
parentf517214d8e0dc0bfabeb958ffd7540e51ab383d0 (diff)
downloadmediapointer-dvb-s2-c83c64ea49e5de51e8b0a6245c1f31c040d97e9d.tar.gz
mediapointer-dvb-s2-c83c64ea49e5de51e8b0a6245c1f31c040d97e9d.tar.bz2
soc-camera: remove now unneeded subdevice group ID assignments
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Since we are not using v4l2_device_call_* calls any more, we don't need to initialise subdevice .grp_id any more. This also fixes compiler warnings on 64-bit platforms. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- drivers/media/video/soc_camera.c | 1 - drivers/media/video/soc_camera_platform.c | 1 - 2 files changed, 0 insertions(+), 2 deletions(-)
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/soc_camera.c1
-rw-r--r--linux/drivers/media/video/soc_camera_platform.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/linux/drivers/media/video/soc_camera.c b/linux/drivers/media/video/soc_camera.c
index 55d4d9a22..cb7c9afd3 100644
--- a/linux/drivers/media/video/soc_camera.c
+++ b/linux/drivers/media/video/soc_camera.c
@@ -857,7 +857,6 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd,
goto ei2cnd;
}
- subdev->grp_id = (__u32)icd;
client = subdev->priv;
/* Use to_i2c_client(dev) to recover the i2c client */
diff --git a/linux/drivers/media/video/soc_camera_platform.c b/linux/drivers/media/video/soc_camera_platform.c
index 1b6dd02a8..b6a575ce5 100644
--- a/linux/drivers/media/video/soc_camera_platform.c
+++ b/linux/drivers/media/video/soc_camera_platform.c
@@ -137,7 +137,6 @@ static int soc_camera_platform_probe(struct platform_device *pdev)
v4l2_subdev_init(&priv->subdev, &platform_subdev_ops);
v4l2_set_subdevdata(&priv->subdev, p);
- priv->subdev.grp_id = (__u32)icd;
strncpy(priv->subdev.name, dev_name(&pdev->dev), V4L2_SUBDEV_NAME_SIZE);
ret = v4l2_device_register_subdev(&ici->v4l2_dev, &priv->subdev);