diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-10-11 19:35:42 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-10-11 19:35:42 +0000 |
commit | e33351681150c10c708b8e34fa97986cb3d41d04 (patch) | |
tree | 288701d4fcb689d94ffe7d4043f20a81cef96359 /app-misc/lirc/files | |
parent | stable ppc, bug #189735 (diff) | |
download | gentoo-2-e33351681150c10c708b8e34fa97986cb3d41d04.tar.gz gentoo-2-e33351681150c10c708b8e34fa97986cb3d41d04.tar.bz2 gentoo-2-e33351681150c10c708b8e34fa97986cb3d41d04.zip |
Fixed device-node to work with udev-115-r2+. Compiling fixed for Kernel 2.6.23+, Bug 195432.
(Portage version: 2.1.3.12)
Diffstat (limited to 'app-misc/lirc/files')
-rw-r--r-- | app-misc/lirc/files/digest-lirc-0.8.2-r2 | 3 | ||||
-rw-r--r-- | app-misc/lirc/files/lirc-0.8.2-kernel-2.6.23.patch | 37 |
2 files changed, 40 insertions, 0 deletions
diff --git a/app-misc/lirc/files/digest-lirc-0.8.2-r2 b/app-misc/lirc/files/digest-lirc-0.8.2-r2 new file mode 100644 index 000000000000..a48314f94f8f --- /dev/null +++ b/app-misc/lirc/files/digest-lirc-0.8.2-r2 @@ -0,0 +1,3 @@ +MD5 83e7060a6693b81075c178d7e3b215af lirc-0.8.2.tar.bz2 634331 +RMD160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9 lirc-0.8.2.tar.bz2 634331 +SHA256 717e62ee763bad9c1ffc25dd096a8845d252eaa050f16f67c6fe3506194e7f62 lirc-0.8.2.tar.bz2 634331 diff --git a/app-misc/lirc/files/lirc-0.8.2-kernel-2.6.23.patch b/app-misc/lirc/files/lirc-0.8.2-kernel-2.6.23.patch new file mode 100644 index 000000000000..be53f123ed6e --- /dev/null +++ b/app-misc/lirc/files/lirc-0.8.2-kernel-2.6.23.patch @@ -0,0 +1,37 @@ +diff -u -r -p lirc-0.8.2-orig/drivers/lirc_dev/lirc_dev.c lirc-0.8.2/drivers/lirc_dev/lirc_dev.c +--- lirc-0.8.2-orig/drivers/lirc_dev/lirc_dev.c 2007-02-13 07:45:15.000000000 +0100 ++++ lirc-0.8.2/drivers/lirc_dev/lirc_dev.c 2007-10-11 20:45:01.000000000 +0200 +@@ -880,8 +880,13 @@ static int lirc_dev_init(void) + return SUCCESS; + + out_unregister: ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) ++ /* unregister_chrdev returns void now */ ++ unregister_chrdev(IRCTL_DEV_MAJOR, IRCTL_DEV_NAME); ++#else + if(unregister_chrdev(IRCTL_DEV_MAJOR, IRCTL_DEV_NAME)) + printk(KERN_ERR "lirc_dev: unregister_chrdev failed!\n"); ++#endif + out: + return -1; + } +@@ -905,6 +910,11 @@ int init_module(void) + */ + void cleanup_module(void) + { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) ++ /* unregister_chrdev returns void now */ ++ unregister_chrdev(IRCTL_DEV_MAJOR, IRCTL_DEV_NAME); ++ class_destroy(lirc_class); ++#else + int ret; + + ret = unregister_chrdev(IRCTL_DEV_MAJOR, IRCTL_DEV_NAME); +@@ -914,6 +924,7 @@ void cleanup_module(void) + printk("lirc_dev: error in module_unregister_chrdev: %d\n", ret); + else + dprintk("lirc_dev: module successfully unloaded\n"); ++#endif + } + + MODULE_DESCRIPTION("LIRC base driver module"); |