aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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;