diff options
author | Janne Grunau <j@jannau.net> | 2009-04-01 13:48:29 +0200 |
---|---|---|
committer | Janne Grunau <j@jannau.net> | 2009-04-01 13:48:29 +0200 |
commit | 5ec5e0418fa9bc68e66e2043e72aba023cc828f4 (patch) | |
tree | 9d1b413fa422c824ecb8f5d729342e2bab66a363 /linux/drivers/media/video/au0828 | |
parent | 0af132238ae56eccd482fc735f4e5cec7a8a3892 (diff) | |
download | mediapointer-dvb-s2-5ec5e0418fa9bc68e66e2043e72aba023cc828f4.tar.gz mediapointer-dvb-s2-5ec5e0418fa9bc68e66e2043e72aba023cc828f4.tar.bz2 |
au0828: remove explicitly set v4l2_device.name and unused au0828_instance
From: Janne Grunau <j@jannau.net>
Priority: normal
Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/au0828')
-rw-r--r-- | linux/drivers/media/video/au0828/au0828-core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-core.c b/linux/drivers/media/video/au0828/au0828-core.c index bc913f8b6..ab25af430 100644 --- a/linux/drivers/media/video/au0828/au0828-core.c +++ b/linux/drivers/media/video/au0828/au0828-core.c @@ -37,8 +37,6 @@ 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 @@ -170,7 +168,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, i; + int ifnum, retval; struct au0828_dev *dev; struct usb_device *usbdev = interface_to_usbdev(interface); @@ -198,9 +196,6 @@ 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", i); retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); if (retval) { printk(KERN_ERR "%s() v4l2_device_register failed\n", |