[linux-dvb] Compiling is broken for kernel 2.6.18

e9hack e9hack at googlemail.com
Sun Oct 14 17:05:17 CEST 2007


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



More information about the linux-dvb mailing list