From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- .../dsplink-add-class-device-create-support.patch | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 recipes/dsplink/files/dsplink-add-class-device-create-support.patch (limited to 'recipes/dsplink/files/dsplink-add-class-device-create-support.patch') diff --git a/recipes/dsplink/files/dsplink-add-class-device-create-support.patch b/recipes/dsplink/files/dsplink-add-class-device-create-support.patch new file mode 100644 index 0000000000..b43c3481e1 --- /dev/null +++ b/recipes/dsplink/files/dsplink-add-class-device-create-support.patch @@ -0,0 +1,55 @@ +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 + + /* ----------------------------------- OS Specific Headers */ ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ++#include ++#endif + #include + #include + #include +@@ -190,6 +194,16 @@ + */ + STATIC Int32 major = 230 ; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ++/** ---------------------------------------------------------------------------- ++ * @name dsplink_class ++ * ++ * @desc class struct for device create. ++ * ---------------------------------------------------------------------------- ++ */ ++STATIC struct class *dsplink_class; ++#endif ++ + /** ---------------------------------------------------------------------------- + * @name DRV_IsInitialized + * +@@ -673,6 +687,11 @@ + } + #endif /* if defined (CHNL_COMPONENT) */ + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ++ dsplink_class = class_create(THIS_MODULE, "dsplink"); ++ device_create(dsplink_class, NULL, MKDEV(major, 0), NULL, "dsplink"); ++#endif ++ + if (DSP_SUCCEEDED (status)) { + DRV_IsInitialized = TRUE ; + } +@@ -717,6 +736,11 @@ + } + #endif /* if defined (CHNL_COMPONENT) */ + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) ++ device_destroy(dsplink_class, MKDEV(major, 0)); ++ class_destroy(dsplink_class); ++#endif ++ + unregister_chrdev (major, "dsplink") ; + + DRV_IsInitialized = FALSE ; -- cgit v1.2.3