]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Merge branch 'pci/yijing-pci_is_pcie-v2' into next
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Nov 2013 00:01:27 +0000 (17:01 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Nov 2013 00:01:27 +0000 (17:01 -0700)
* pci/yijing-pci_is_pcie-v2:
  powerpc/pci: Use pci_is_pcie() to simplify code [fix]

arch/powerpc/kernel/eeh.c

index 6ebbe545b7a584d9956fbe136af62a49cc9f65ed..db86f97a0e924ef17ae86d217e7ab2049ba9c079 100644 (file)
@@ -195,7 +195,7 @@ static size_t eeh_gather_pci_data(struct eeh_dev *edev, char * buf, size_t len)
                       "EEH: PCI-E capabilities and status follow:\n");
 
                for (i=0; i<=8; i++) {
-                       eeh_ops->read_config(dn, cap+4*i, 4, &cfg);
+                       eeh_ops->read_config(dn, dev->pcie_cap+4*i, 4, &cfg);
                        n += scnprintf(buf+n, len-n, "%02x:%x\n", 4*i, cfg);
                        printk(KERN_WARNING "EEH: PCI-E %02x: %08x\n", i, cfg);
                }