Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164235
b: refs/heads/master
c: 2aa58db
h: refs/heads/master
i:
  164233: 3845778
  164231: 9b14555
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 561a17b commit f69a89a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85f8be68125163085392ed4fc30adcbea641586d
refs/heads/master: 2aa58db47f5c70635ea278f6a5ff9e1e920bfe6a
8 changes: 3 additions & 5 deletions trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,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;
}
Expand Down Expand Up @@ -426,7 +426,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--;
Expand All @@ -446,7 +445,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;
}
Expand All @@ -456,10 +455,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;
}
Expand Down

0 comments on commit f69a89a

Please sign in to comment.