Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181689
b: refs/heads/master
c: d74f841
h: refs/heads/master
i:
  181687: 987a465
v: v3
  • Loading branch information
Magnus Damm authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 83984dd commit 50b1ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 6b727c68ea7083acd008da7c9734a19a4cdd52dc
refs/heads/master: d74f841c32f0b00a513d87bba646d019ef7d1f67
8 changes: 2 additions & 6 deletions trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,8 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd,
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
struct i2c_adapter *adap = i2c_get_adapter(icl->i2c_adapter_id);
struct v4l2_subdev *subdev;
int ret;

if (!adap) {
ret = -ENODEV;
dev_err(&icd->dev, "Cannot get I2C adapter #%d. No driver?\n",
icl->i2c_adapter_id);
goto ei2cga;
Expand All @@ -859,10 +857,8 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd,

subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap,
icl->module_name, icl->board_info, NULL);
if (!subdev) {
ret = -ENOMEM;
if (!subdev)
goto ei2cnd;
}

client = subdev->priv;

Expand All @@ -873,7 +869,7 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd,
ei2cnd:
i2c_put_adapter(adap);
ei2cga:
return ret;
return -ENODEV;
}

static void soc_camera_free_i2c(struct soc_camera_device *icd)
Expand Down

0 comments on commit 50b1ce7

Please sign in to comment.