summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-28 09:57:25 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-28 09:57:25 +0000
commitb16665b96be116a86077edd5095afcae3e14a188 (patch)
treecbeba3543b2534a8b35e3df2f6345bbb604fe507
parent063292ab47c895426d163811b7713cd441716492 (diff)
downloadldetect-b16665b96be116a86077edd5095afcae3e14a188.tar
ldetect-b16665b96be116a86077edd5095afcae3e14a188.tar.gz
ldetect-b16665b96be116a86077edd5095afcae3e14a188.tar.bz2
ldetect-b16665b96be116a86077edd5095afcae3e14a188.tar.xz
ldetect-b16665b96be116a86077edd5095afcae3e14a188.zip
(pci_probe) fix inverted test for choosing between '8139cp' &
'8139too' drivers (#53349)
-rw-r--r--NEWS2
-rw-r--r--pci.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bd26de4..6282701 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix inverted test for choosing between '8139cp' & '8139too' drivers (#53349)
+
Version 0.9.0 - 23 September 2009, Thierry Vignaud
- display PCI revision (#42576)
diff --git a/pci.c b/pci.c
index db840c2..168191e 100644
--- a/pci.c
+++ b/pci.c
@@ -95,7 +95,7 @@ extern struct pciusb_entries pci_probe(void) {
}
class_prog = buf[PCI_CLASS_PROG];
- if (e->device == 0x10ec && e->subvendor == 0x8139) {
+ if (e->vendor == 0x10ec && e->device == 0x8139) {
if (e->pci_revision < 0x20)
e->module = strdup("8139too");
else