--- /dev/null
+diff -uNr codec_engine_2_21/cetools/packages/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c codec_engine_2_21_fix/cetools/packages/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
+--- codec_engine_2_21/cetools/packages/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2008-10-24 20:58:01.000000000 +0100
++++ codec_engine_2_21_fix/cetools/packages/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2009-02-20 23:46:42.000000000 +0000
+@@ -37,6 +37,10 @@
+ #endif\r
+ \r
+ /* ----------------------------------- OS Specific Headers */\r
++#include <linux/version.h>\r
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)\r
++#include <linux/device.h>\r
++#endif\r
+ #include <linux/autoconf.h>\r
+ #include <linux/spinlock.h>\r
+ #include <linux/module.h>\r
+@@ -190,6 +194,16 @@
+ */\r
+ STATIC Int32 major = 230 ;\r
+ \r
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)\r
++/** ----------------------------------------------------------------------------\r
++ * @name dsplink_class\r
++ *\r
++ * @desc class struct for device create.\r
++ * ----------------------------------------------------------------------------\r
++ */\r
++STATIC struct class *dsplink_class;\r
++#endif\r
++\r
+ /** ----------------------------------------------------------------------------\r
+ * @name DRV_IsInitialized\r
+ *\r
+@@ -673,6 +687,11 @@
+ }\r
+ #endif /* if defined (CHNL_COMPONENT) */\r
+ \r
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)\r
++ dsplink_class = class_create(THIS_MODULE, "dsplink");\r
++ device_create(dsplink_class, NULL, MKDEV(major, 0), NULL, "dsplink");\r
++#endif\r
++\r
+ if (DSP_SUCCEEDED (status)) {\r
+ DRV_IsInitialized = TRUE ;\r
+ }\r
+@@ -717,6 +736,11 @@
+ }\r
+ #endif /* if defined (CHNL_COMPONENT) */\r
+ \r
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)\r
++ device_destroy(dsplink_class, MKDEV(major, 0));\r
++ class_destroy(dsplink_class);\r
++#endif\r
++\r
+ unregister_chrdev (major, "dsplink") ;\r
+ \r
+ DRV_IsInitialized = FALSE ;\r
inherit module
# tconf from xdctools dislikes '.' in pwd :/
-PR = "r15"
+PR = "r16"
PV = "221"
# Get CE tarball from TI website, place in sources and calculate
file://cmem-class-device-27-and-sched-include-fix.patch;patch=1 \
file://sdma-class-device-and-includes-fix.patch;patch=1 \
file://dsplink-semaphore-27.patch;patch=1 \
+ file://dsplink-add-class-device-create-support.patch;patch=1 \
file://lpm-device-create-and-semaphore-include-fix.patch;patch=1 \
file://lpm-make-symbol-warnings-fix.patch;patch=1 \
file://Makefile-dsplink-gpp \