]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PCI: fix typo in pci_save_pcix_state
authorShaohua Li <shaohua.li@intel.com>
Tue, 18 Dec 2007 01:56:47 +0000 (09:56 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:27 +0000 (15:04 -0800)
pci_save/store_state has multiple bugs, which will cause cap can't be
saved/restored correctly. Below 3 patches fix them.

fix the typo in pci_save_pcix_state

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c

index d30e802d9a1aacec85cb13a1e77e3b665b801081..b01ed9a5ab43e3b8723197aca6b9210016af02c8 100644 (file)
@@ -620,7 +620,7 @@ static int pci_save_pcix_state(struct pci_dev *dev)
        if (pos <= 0)
                return 0;
 
-       save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP);
+       save_state = pci_find_saved_cap(dev, PCI_CAP_ID_PCIX);
        if (!save_state)
                save_state = kzalloc(sizeof(*save_state) + sizeof(u16), GFP_KERNEL);
        if (!save_state) {