]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[POWERPC] The pci_dn pcidev is only used by EEH
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Dec 2007 04:49:11 +0000 (15:49 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 Jan 2008 03:57:01 +0000 (14:57 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/pci.c
include/asm-powerpc/pci-bridge.h

index 30e3d992dc0d9a1988d44c27bcedc54f0d651008..931941036b91fd791640b73089b967fffdc176f5 100644 (file)
@@ -438,7 +438,6 @@ void __init iSeries_pcibios_fixup_resources(struct pci_dev *pdev)
        }
 
        pdev->sysdata = node;
-       PCI_DN(node)->pcidev = pdev;
        allocate_device_bars(pdev);
        iseries_device_information(pdev, bus, *sub_bus);
        iommu_devnode_init_iSeries(pdev, node);
index 07cdb5b786f06b1bea47a86e6ab94d0c394be24c..29324047779d2719bfef0bbd63882f1eccec298e 100644 (file)
@@ -170,12 +170,12 @@ struct pci_dn {
 
        struct  pci_controller *phb;    /* for pci devices */
        struct  iommu_table *iommu_table;       /* for phb's or bridges */
-       struct  pci_dev *pcidev;        /* back-pointer to the pci device */
        struct  device_node *node;      /* back-pointer to the device_node */
 
        int     pci_ext_config_space;   /* for pci devices */
 
 #ifdef CONFIG_EEH
+       struct  pci_dev *pcidev;        /* back-pointer to the pci device */
        int     class_code;             /* pci device class */
        int     eeh_mode;               /* See eeh.h for possible EEH_MODEs */
        int     eeh_config_addr;