slackbuilds_ponce/system/lirc/patches/lirc-0.9.0-atiusb_kfifo.patch
Matteo Bernardini 085fc4cb82 system/lirc: Patched for recent kernels.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2012-09-13 17:58:11 -05:00

14 lines
437 B
Diff

--- 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;
}