powerpc/pci: Remove unused struct pci_dn.pcidev field
authorWei Yang <weiyang@linux.vnet.ibm.com>
Wed, 25 Mar 2015 08:24:00 +0000 (16:24 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 31 Mar 2015 02:02:38 +0000 (13:02 +1100)
In struct pci_dn, the pcidev field is assigned but not used, so remove it.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/platforms/powernv/pci-ioda.c

index 560c739964742782def9dc5ab2eb8b6bc277848e..a39270e85beb0bd6c544fd667f07f46a87ebb3d6 100644 (file)
@@ -171,7 +171,6 @@ struct pci_dn {
 
        int     pci_ext_config_space;   /* for pci devices */
 
-       struct  pci_dev *pcidev;        /* back-pointer to the pci device */
 #ifdef CONFIG_EEH
        struct eeh_dev *edev;           /* eeh device */
 #endif
index 33088f6f732848747ca100b9f75267d3e06888cd..b1387ea6d10a46b7f91163f36a6f25d776759440 100644 (file)
@@ -1028,7 +1028,6 @@ static void pnv_ioda_setup_same_PE(struct pci_bus *bus, struct pnv_ioda_pe *pe)
                                pci_name(dev));
                        continue;
                }
-               pdn->pcidev = dev;
                pdn->pe_number = pe->pe_number;
                pe->dma_weight += pnv_ioda_dma_weight(dev);
                if ((pe->flags & PNV_IODA_PE_BUS_ALL) && dev->subordinate)