Skip to content

Commit

Permalink
V4L/DVB (12580): soc-camera: remove now unneeded subdevice group ID a…
Browse files Browse the repository at this point in the history
…ssignments

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 96c7539 commit 0da2808
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,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 */
Expand Down
1 change: 0 additions & 1 deletion drivers/media/video/soc_camera_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0da2808

Please sign in to comment.