summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>2002-11-19 17:42:00 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-19 17:42:00 -0800
commitd613ff0ab94040f5d30da24b1924a750da541e3a (patch)
tree69c5aba1a90f6281a92e63aa603ca7900518d158
parent72c85a120f2e9a6deb5a3059108467d54bcbbb6f (diff)
[PATCH] PCI: transparent bridge detection fix
The detection of subtractive decoding bridges is broken: `class' variable doesn't contain ProgIf byte at this point, I should check `dev->class' instead. This fixes resource allocation problems on certain docking stations.
-rw-r--r--drivers/pci/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 5dfb1af81376..5135fdde0d4d 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -384,7 +384,7 @@ int pci_setup_device(struct pci_dev * dev)
/* The PCI-to-PCI bridge spec requires that subtractive
decoding (i.e. transparent) bridge must have programming
interface code of 0x01. */
- dev->transparent = ((class & 0xff) == 1);
+ dev->transparent = ((dev->class & 0xff) == 1);
pci_read_bases(dev, 2, PCI_ROM_ADDRESS1);
break;