summaryrefslogtreecommitdiff
path: root/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch
blob: 32edb244b412284baddee301ddcc7144ca22996e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 	}