aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2007-06-08 18:46:30 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:02:09 -0400
commitb8a3a5214d7cc115f1ca3a3967b7229d97c46f4a (patch)
tree221d50091530cb442496e09591b3bf7ac06e57b4 /drivers/pci/probe.c
parent56906c612e10b5e32a48ccbe8a3c08ab6acf5a28 (diff)
PCI: read revision ID by default
Currently there are 97 occurrences where drivers need the pci revision ID. We can do this once for all devices. Even the pci subsystem needs the revision several times for quirks. The extra u8 member pads out nicely in the pci_dev struct. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 9cd983acba8c..8802fcb4aaf0 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -702,6 +702,7 @@ static int pci_setup_device(struct pci_dev * dev)
702 dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); 702 dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
703 703
704 pci_read_config_dword(dev, PCI_CLASS_REVISION, &class); 704 pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);
705 dev->revision = class & 0xff;
705 class >>= 8; /* upper 3 bytes */ 706 class >>= 8; /* upper 3 bytes */
706 dev->class = class; 707 dev->class = class;
707 class >>= 8; 708 class >>= 8;