summaryrefslogtreecommitdiff
path: root/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch')
-rw-r--r--system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch b/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch
new file mode 100644
index 0000000000..32edb244b4
--- /dev/null
+++ b/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch
@@ -0,0 +1,14 @@
+--- a/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:04:39.000000000 -0400
++++ b/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:19:06.000000000 -0400
+@@ -1050,7 +1050,11 @@
+ goto new_irctl_failure_check;
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38)
+ if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
++#else
++ if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
++#endif
+ mem_failure = 4;
+ goto new_irctl_failure_check;
+ }