Compiling is broken for kernel 2.6.18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

changset 6293 (V4L: convert struct class_device to struct device) breaks compiling for kernel 2.6.18.

--- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c Mon Oct 08 12:20:02 2007 -0300
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c Mon Oct 08 16:26:13 2007 -0300
...
@@ -903,11 +919,15 @@ struct pvr2_sysfs_class *pvr2_sysfs_clas
pvr2_sysfs_trace("Creating pvr2_sysfs_class id=%p",clp);
clp->class.name = "pvrusb2";
clp->class.class_release = pvr2_sysfs_class_release;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
clp->class.release = pvr2_sysfs_release;
+#else
+ clp->class.dev_release = pvr2_sysfs_release;
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
clp->class.hotplug = pvr2_sysfs_hotplug;
#else
- clp->class.uevent = pvr2_sysfs_hotplug;
+ clp->class.dev_uevent = pvr2_sysfs_hotplug;
#endif
if (class_register(&clp->class)) {
pvr2_sysfs_trace(
...

In kernel 2.6.18, the structure 'class' doesn't contain a member 'dev_release' or 'dev_uevent'.
Possible kernel 2.6.13 to 2.6.19 are affected from this problem.

- Hartmut

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux