From: | "Michal Gorny (mgorny)" <mgorny@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-video/stk11xx/files: stk11xx-2.6.37.patch |
Date: | Fri, 04 Feb 2011 23:39:50 |
Message-Id: | 20110204233936.647D020057@flycatcher.gentoo.org |
1 | mgorny 11/02/04 23:39:36 |
2 | |
3 | Added: stk11xx-2.6.37.patch |
4 | Log: |
5 | Add a patch to fix building against 2.6.37 kernel. |
6 | |
7 | (Portage version: 2.2.0_alpha19_p84/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-video/stk11xx/files/stk11xx-2.6.37.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/stk11xx/files/stk11xx-2.6.37.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/stk11xx/files/stk11xx-2.6.37.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: stk11xx-2.6.37.patch |
16 | =================================================================== |
17 | diff -ruN driver.org//stk11xx-usb.c driver/stk11xx-usb.c |
18 | --- driver.org//stk11xx-usb.c 2011-01-06 21:51:53.674999852 +0200 |
19 | +++ driver/stk11xx-usb.c 2011-01-06 21:56:44.418999851 +0200 |
20 | @@ -844,7 +844,12 @@ |
21 | } |
22 | |
23 | // Init mutexes, spinlock, etc. |
24 | + |
25 | +#ifndef init_MUTEX |
26 | + sema_init(&dev->mutex,1); |
27 | +#else |
28 | init_MUTEX(&dev->mutex); |
29 | +#endif |
30 | mutex_init(&dev->modlock); |
31 | spin_lock_init(&dev->spinlock); |
32 | init_waitqueue_head(&dev->wait_frame); |