Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176840
b: refs/heads/master
c: 6ed7c03
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 8b452e3 commit 0f79333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 5d28d525452f170e30bc038955439731462a5228
refs/heads/master: 6ed7c03884ee7c05ff880cafb46ae20915e22e3c
7 changes: 5 additions & 2 deletions trunk/drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ static int sh_mobile_ceu_add_device(struct soc_camera_device *icd)
{
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
struct sh_mobile_ceu_dev *pcdev = ici->priv;
int ret;

if (pcdev->icd)
return -EBUSY;
Expand All @@ -469,9 +470,11 @@ static int sh_mobile_ceu_add_device(struct soc_camera_device *icd)

pm_runtime_get_sync(ici->v4l2_dev.dev);

pcdev->icd = icd;
ret = sh_mobile_ceu_soft_reset(pcdev);
if (!ret)
pcdev->icd = icd;

return sh_mobile_ceu_soft_reset(pcdev);
return ret;
}

/* Called with .video_lock held */
Expand Down

0 comments on commit 0f79333

Please sign in to comment.