Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138215
b: refs/heads/master
c: e13ce79
h: refs/heads/master
i:
  138213: 0618538
  138211: 71c2c7e
  138207: b484c1c
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent dfa9a39 commit bfb8d81
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: b14667f32ad0f85f986847ef65f9f3d12a44b71a
refs/heads/master: e13ce79734348610a2b782cb818db65659b0dc83
7 changes: 5 additions & 2 deletions trunk/drivers/media/video/au0828/au0828-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ int au0828_debug;
module_param_named(debug, au0828_debug, int, 0644);
MODULE_PARM_DESC(debug, "enable debug messages");

static atomic_t au0828_instance = ATOMIC_INIT(0);

#define _AU0828_BULKPIPE 0x03
#define _BULKPIPESIZE 0xffff

Expand Down Expand Up @@ -167,7 +169,7 @@ static void au0828_usb_disconnect(struct usb_interface *interface)
static int au0828_usb_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
int ifnum, retval;
int ifnum, retval, i;
struct au0828_dev *dev;
struct usb_device *usbdev = interface_to_usbdev(interface);

Expand Down Expand Up @@ -195,8 +197,9 @@ static int au0828_usb_probe(struct usb_interface *interface,
usb_set_intfdata(interface, dev);

/* Create the v4l2_device */
i = atomic_inc_return(&au0828_instance) - 1;
snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), "%s-%03d",
"au0828", 0);
"au0828", i);
retval = v4l2_device_register(&dev->usbdev->dev, &dev->v4l2_dev);
if (retval) {
printk(KERN_ERR "%s() v4l2_device_register failed\n",
Expand Down

0 comments on commit bfb8d81

Please sign in to comment.