1 diff -Naur v4l-dvb-4c4fd6b8755c.org/linux/drivers/media/video/videodev.c v4l-dvb/linux/drivers/media/video/videodev.c
2 --- v4l-dvb-4c4fd6b8755c.org/linux/drivers/media/video/videodev.c 2008-05-02 12:51:27.000000000 +0200
3 +++ v4l-dvb/linux/drivers/media/video/videodev.c 2008-05-10 14:40:07.000000000 +0200
6 static struct class video_class = {
8 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
10 .release = video_release,
12 .dev_attrs = video_device_attrs,
13 @@ -2102,28 +2102,28 @@
16 memset(&vfd->class_dev, 0x00, sizeof(vfd->class_dev));
17 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
19 - vfd->class_dev.dev = vfd->dev;
20 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
22 +// vfd->class_dev.dev = vfd->dev;
25 vfd->class_dev.parent = vfd->dev;
27 - vfd->class_dev.class = &video_class;
28 +// vfd->class_dev.class = &video_class;
29 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
30 - vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor);
31 +// vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor);
33 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
34 - sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base);
35 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
36 +// sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base);
38 sprintf(vfd->class_dev.bus_id, "%s%d", name_base, i - base);
40 - ret = device_register(&vfd->class_dev);
42 - printk(KERN_ERR "%s: device_register failed\n",
43 +// ret = device_register(&vfd->class_dev);
45 + printk(KERN_ERR "%s: device_register disabled\n",
51 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
52 ret = class_device_create_file(&vfd->class_dev, &class_device_attr_name);
55 panic("videodev: bad unregister");
57 video_device[vfd->minor]=NULL;
58 - device_unregister(&vfd->class_dev);
59 +// device_unregister(&vfd->class_dev);
60 mutex_unlock(&videodev_lock);
62 EXPORT_SYMBOL(video_unregister_device);