Contents of /trunk/ati-drivers/patches/p1.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1120 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1120 byte(s)
-import
1 | |
2 | |
3 | 2005-03-02 22:32 diff -lu or.c agpgart_be.c Page 1 |
4 | |
5 | |
6 | --- or.c 2005-01-31 19:50:00.000000000 +0200 |
7 | +++ agpgart_be.c 2005-03-02 22:19:25.000000000 +0200 |
8 | @@ -4075,6 +4081,13 @@ |
9 | } |
10 | } |
11 | } |
12 | + |
13 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) |
14 | + // the reference count has been increased in agp_backend_initialize. |
15 | + if (device) |
16 | + pci_dev_put(device); |
17 | +#endif |
18 | + |
19 | /* |
20 | * PASS3: Figure out the 8X/4X setting and enable the |
21 | * target (our motherboard chipset). |
22 | @@ -5283,6 +5296,12 @@ |
23 | pci_dev_put(device); |
24 | #endif |
25 | |
26 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) |
27 | + // the reference count has been increased in agp_backend_initialize. |
28 | + if (device) |
29 | + pci_dev_put(device); |
30 | +#endif |
31 | + |
32 | return(0); /* success */ |
33 | } |
34 | |
35 | @@ -7428,6 +7447,11 @@ |
36 | return rc; |
37 | } |
38 | |
39 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) |
40 | + // decrease the reference count. |
41 | + pci_dev_put(agp_bridge.dev); |
42 | +#endif |
43 | + |
44 | if (agp_bridge.needs_scratch_page == TRUE) { |
45 | agp_bridge.scratch_page = agp_bridge.agp_alloc_page(); |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 | |
53 |
Properties
Name | Value |
---|---|
svn:executable | * |