]>
Commit | Line | Data |
---|---|---|
74748676 PS |
1 | --- NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c.orig 2004-10-27 18:23:13.000000000 +0200 |
2 | +++ NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c 2004-10-27 18:24:52.617102752 +0200 | |
3 | @@ -639,7 +639,7 @@ | |
4 | u8 cap_ptr; | |
5 | int func, slot; | |
6 | ||
7 | - dev = pci_find_class(class << 8, NULL); | |
8 | + dev = pci_get_class(class << 8, NULL); | |
9 | do { | |
10 | for (func = 0; func < 8; func++) { | |
11 | slot = PCI_SLOT(dev->devfn); | |
12 | @@ -650,7 +650,7 @@ | |
13 | if (cap_ptr) | |
14 | return fn; | |
15 | } | |
16 | - dev = pci_find_class(class << 8, dev); | |
17 | + dev = pci_get_class(class << 8, dev); | |
18 | } while (dev); | |
19 | ||
20 | return NULL; | |
21 | @@ -3484,12 +3484,12 @@ | |
22 | struct pci_dev *dev = NULL; | |
23 | int count = 0; | |
24 | ||
25 | - dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, dev); | |
26 | + dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, dev); | |
27 | while (dev) | |
28 | { | |
29 | if ((dev->vendor == 0x10de) && (dev->device >= 0x20)) | |
30 | count++; | |
31 | - dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, dev); | |
32 | + dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, dev); | |
33 | } | |
34 | return count; | |
35 | } |