summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-09-20 20:28:49 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-09-20 20:28:49 +0000
commitcbe3291be78175238471d4d5a97461a0837e8da4 (patch)
treee9e3b78ae9c5377e28e3b1a051719b77596d56c2 /media-video/nvidia-kernel/files
parentFix compile with -Os (bug #64581) (Manifest recommit) (diff)
downloadgentoo-2-cbe3291be78175238471d4d5a97461a0837e8da4.tar.gz
gentoo-2-cbe3291be78175238471d4d5a97461a0837e8da4.tar.bz2
gentoo-2-cbe3291be78175238471d4d5a97461a0837e8da4.zip
Latest -mm kernels removed pci_find_class; replace this with pci_get_class.
It should work fine on earlier kernels, but I have not tested this ...
Diffstat (limited to 'media-video/nvidia-kernel/files')
-rw-r--r--media-video/nvidia-kernel/files/1.0.6111/nv-pci_find_class.patch35
-rw-r--r--media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.6111-r12
2 files changed, 37 insertions, 0 deletions
diff --git a/media-video/nvidia-kernel/files/1.0.6111/nv-pci_find_class.patch b/media-video/nvidia-kernel/files/1.0.6111/nv-pci_find_class.patch
new file mode 100644
index 000000000000..97c46827d1f4
--- /dev/null
+++ b/media-video/nvidia-kernel/files/1.0.6111/nv-pci_find_class.patch
@@ -0,0 +1,35 @@
+--- NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c 2004-09-20 23:29:14.953986656 +0200
++++ NVIDIA-Linux-x86-1.0-6111-pkg1.az/usr/src/nv/nv.c 2004-09-20 23:29:36.414724128 +0200
+@@ -639,7 +639,7 @@
+ u8 cap_ptr;
+ int func, slot;
+
+- dev = pci_find_class(class << 8, NULL);
++ dev = pci_get_class(class << 8, NULL);
+ do {
+ for (func = 0; func < 8; func++) {
+ slot = PCI_SLOT(dev->devfn);
+@@ -650,7 +650,7 @@
+ if (cap_ptr)
+ return fn;
+ }
+- dev = pci_find_class(class << 8, dev);
++ dev = pci_get_class(class << 8, dev);
+ } while (dev);
+
+ return NULL;
+@@ -3484,12 +3484,12 @@
+ struct pci_dev *dev = NULL;
+ int count = 0;
+
+- dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, dev);
++ dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, dev);
+ while (dev)
+ {
+ if ((dev->vendor == 0x10de) && (dev->device >= 0x20))
+ count++;
+- dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, dev);
++ dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, dev);
+ }
+ return count;
+ }
diff --git a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.6111-r1 b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.6111-r1
new file mode 100644
index 000000000000..891f45379b0a
--- /dev/null
+++ b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.6111-r1
@@ -0,0 +1,2 @@
+MD5 51e83be46f83c52102ccb8995b54f4e2 NVIDIA-Linux-x86-1.0-6111-pkg1.run 8167999
+MD5 6c7b0c8b3ce5c34186e0c80042e6d046 NVIDIA-Linux-x86_64-1.0-6111-pkg2.run 7333486