Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142390
b: refs/heads/master
c: eee1663
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent c1035e2 commit 85dc15c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6cb2c0009e8f27abad514c44d60b58913189b8c6
refs/heads/master: eee1663fa71e32b146a584cb9a7c22bb6302ec14
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,10 @@ static int soc_camera_s_register(struct file *file, void *fh,

static int device_register_link(struct soc_camera_device *icd)
{
int ret = device_register(&icd->dev);
int ret = dev_set_name(&icd->dev, "%u-%u", icd->iface, icd->devnum);

if (!ret)
ret = device_register(&icd->dev);

if (ret < 0) {
/* Prevent calling device_unregister() */
Expand Down Expand Up @@ -1060,7 +1063,6 @@ int soc_camera_device_register(struct soc_camera_device *icd)

icd->devnum = num;
icd->dev.bus = &soc_camera_bus_type;
dev_set_name(&icd->dev, "%u-%u", icd->iface, icd->devnum);

icd->dev.release = dummy_release;
icd->use_count = 0;
Expand Down

0 comments on commit 85dc15c

Please sign in to comment.