Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271923
b: refs/heads/master
c: 778f295
h: refs/heads/master
i:
  271921: 187e23e
  271919: 0302def
v: v3
  • Loading branch information
Chris Rankin authored and Mauro Carvalho Chehab committed Sep 26, 2011
1 parent f4f45f7 commit c762f5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: f055815fd0e4dd22ffd523f0e5117132c0a49e3d
refs/heads/master: 778f295080b62cbce1af402e1704566531e01233
11 changes: 7 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3005,10 +3005,6 @@ static int em28xx_init_dev(struct em28xx **devhandle, struct usb_device *udev,
goto fail;
}

mutex_unlock(&dev->lock);
em28xx_init_extension(dev);
mutex_lock(&dev->lock);

/* Save some power by putting tuner to sleep */
v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0);

Expand Down Expand Up @@ -3243,6 +3239,13 @@ static int em28xx_usb_probe(struct usb_interface *interface,
*/
mutex_unlock(&dev->lock);

/*
* These extensions can be modules. If the modules are already
* loaded then we can initialise the device now, otherwise we
* will initialise it when the modules load instead.
*/
em28xx_init_extension(dev);

return 0;

err:
Expand Down

0 comments on commit c762f5d

Please sign in to comment.