updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / lirc-bede / lirc_atiusb-kfifo.patch
bloba64984dce8c2ce11ceb176f3f2db62a6e8c5df82
1 From ec3c5660e67c122e2d5eb9cfa838c9709fccf8e0 Mon Sep 17 00:00:00 2001
2 From: Jason Martin <publicmsu@gmail.com>
3 Date: Fri, 3 Jun 2011 00:12:51 -0400
4 Subject: [PATCH] lirc_atiusb: fix buffer alloc to work with new kfifo
6 I came across posts with regards to lirc_atiusb and its compatibility
7 with newer kernels, and their use of kfifo.I spent a little bit of time
8 this evening, and was able to correct the issues with the driver, and
9 now have a functioning lirc_atiusb device under the 2.6.38 kernel.
11 Signed-off-by: Jarod Wilson <jarod@redhat.com>
12 ---
13 drivers/lirc_atiusb/lirc_atiusb.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
16 diff --git a/drivers/lirc_atiusb/lirc_atiusb.c b/drivers/lirc_atiusb/lirc_atiusb.c
17 index 52080de..bf2b631 100644
18 --- a/drivers/lirc_atiusb/lirc_atiusb.c
19 +++ b/drivers/lirc_atiusb/lirc_atiusb.c
20 @@ -1048,7 +1048,7 @@ static struct atirf_dev *new_irctl(struct usb_interface *intf)
21 goto new_irctl_failure_check;
24 - if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
25 + if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
26 mem_failure = 4;
27 goto new_irctl_failure_check;
29 --
30 1.7.0.1