summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:47:00 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:47:00 +0200
commitd1d25e3f57f0395cafed266bfcb95fe4b21d45f3 (patch)
tree1079d3fa289e4eb8a80bb27e9c08c0458825a6c5 /linux/drivers
parent3a76b0c22111746bd099bc5c9279dbedc734e3ac (diff)
downloadmediapointer-dvb-s2-d1d25e3f57f0395cafed266bfcb95fe4b21d45f3.tar.gz
mediapointer-dvb-s2-d1d25e3f57f0395cafed266bfcb95fe4b21d45f3.tar.bz2
soc-camera: Use camera device object for core output
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Priority: low --- drivers/media/video/soc_camera.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/soc_camera.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/video/soc_camera.c b/linux/drivers/media/video/soc_camera.c
index 0517754f7..6145846f7 100644
--- a/linux/drivers/media/video/soc_camera.c
+++ b/linux/drivers/media/video/soc_camera.c
@@ -298,7 +298,7 @@ static int soc_camera_set_fmt(struct soc_camera_file *icf,
return ret;
} else if (!icd->current_fmt ||
icd->current_fmt->fourcc != pix->pixelformat) {
- dev_err(ici->v4l2_dev.dev,
+ dev_err(&icd->dev,
"Host driver hasn't set up current format correctly!\n");
return -EINVAL;
}
@@ -427,7 +427,6 @@ static int soc_camera_close(struct file *file)
struct soc_camera_file *icf = file->private_data;
struct soc_camera_device *icd = icf->icd;
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
- struct video_device *vdev = icd->vdev;
mutex_lock(&icd->video_lock);
icd->use_count--;
@@ -447,7 +446,7 @@ static int soc_camera_close(struct file *file)
vfree(icf);
- dev_dbg(vdev->parent, "camera device close\n");
+ dev_dbg(&icd->dev, "camera device close\n");
return 0;
}
@@ -457,10 +456,9 @@ static ssize_t soc_camera_read(struct file *file, char __user *buf,
{
struct soc_camera_file *icf = file->private_data;
struct soc_camera_device *icd = icf->icd;
- struct video_device *vdev = icd->vdev;
int err = -EINVAL;
- dev_err(vdev->parent, "camera device read not implemented\n");
+ dev_err(&icd->dev, "camera device read not implemented\n");
return err;
}