Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254641
b: refs/heads/master
c: 258c056
h: refs/heads/master
i:
  254639: 729f288
v: v3
  • Loading branch information
Andre Bartke authored and Mauro Carvalho Chehab committed Jul 1, 2011
1 parent b3a0ebd commit fc551e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 383e4f69879d11c86ebdd38b3356f6d0690fb4cc
refs/heads/master: 258c05637d6b6df2478a2808a3d2350c3c6782d6
10 changes: 3 additions & 7 deletions trunk/drivers/media/video/mx1_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,9 @@ static int mx1_camera_add_device(struct soc_camera_device *icd)
{
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
struct mx1_camera_dev *pcdev = ici->priv;
int ret;

if (pcdev->icd) {
ret = -EBUSY;
goto ebusy;
}
if (pcdev->icd)
return -EBUSY;

dev_info(icd->dev.parent, "MX1 Camera driver attached to camera %d\n",
icd->devnum);
Expand All @@ -458,8 +455,7 @@ static int mx1_camera_add_device(struct soc_camera_device *icd)

pcdev->icd = icd;

ebusy:
return ret;
return 0;
}

static void mx1_camera_remove_device(struct soc_camera_device *icd)
Expand Down

0 comments on commit fc551e4

Please sign in to comment.