]> err.no Git - linux-2.6/commitdiff
cpqphp: Use PCI_CLASS_REVISION instead of PCI_REVISION_ID for read
authorAuke Kok <auke-jan.h.kok@intel.com>
Mon, 27 Aug 2007 23:17:38 +0000 (16:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 22:03:16 +0000 (15:03 -0700)
While PCI_CLASS_REVISION and PCI_REVISION_ID are identical, the
code here discards the revision content and is only interested in
the class number.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Krosten Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/cpqphp_core.c

index 2305cc450a4572da1d9dc0a57783a500db3a91a0..a96b739b2d35e2ccf1453ffeb92550850fbe3b89 100644 (file)
@@ -549,7 +549,7 @@ get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot)
                         * slot. */
                        bus->number = tbus;
                        pci_bus_read_config_dword(bus, PCI_DEVFN(tdevice, 0),
-                                               PCI_REVISION_ID, &work);
+                                               PCI_CLASS_REVISION, &work);
 
                        if ((work >> 8) == PCI_TO_PCI_BRIDGE_CLASS) {
                                pci_bus_read_config_dword(bus,