summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAuke Kok2007-08-28 01:17:38 +0200
committerGreg Kroah-Hartman2007-10-13 00:03:16 +0200
commit3799a4e7d8867cfbb137d417beb126d5a2302607 (patch)
tree1ac0a85a2dd039bd253dbb4e1e1f36e35f3e2a68 /drivers
parentPCI: Add missing PCI capability IDs (diff)
downloadkernel-qcow2-linux-3799a4e7d8867cfbb137d417beb126d5a2302607.tar.gz
kernel-qcow2-linux-3799a4e7d8867cfbb137d417beb126d5a2302607.tar.xz
kernel-qcow2-linux-3799a4e7d8867cfbb137d417beb126d5a2302607.zip
cpqphp: Use PCI_CLASS_REVISION instead of PCI_REVISION_ID for read
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/hotplug/cpqphp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c
index 2305cc450a45..a96b739b2d35 100644
--- a/drivers/pci/hotplug/cpqphp_core.c
+++ b/drivers/pci/hotplug/cpqphp_core.c
@@ -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,