aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2006-05-19 02:51:57 -0400
committerPaul Mackerras <paulus@samba.org>2006-05-24 02:08:56 -0400
commit403fac4f83bd8e089a192c542511fbeb2729a6c5 (patch)
treef33cf1d6caee0cb7edaa977ec8cc5d6f340d93b7
parentb02527931672749d404b5f640b7e086afc37f4e0 (diff)
[PATCH] powerpc: remove LogicalSlot from pci_dn
As we now store enough information in the device_node. Also the Flags field was not used either, do remove that. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/platforms/iseries/iommu.c5
-rw-r--r--arch/powerpc/platforms/iseries/pci.c8
-rw-r--r--include/asm-powerpc/pci-bridge.h4
3 files changed, 4 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c
index 75a5a1e8abb8..a992f6af249f 100644
--- a/arch/powerpc/platforms/iseries/iommu.c
+++ b/arch/powerpc/platforms/iseries/iommu.c
@@ -162,10 +162,13 @@ void iommu_devnode_init_iSeries(struct device_node *dn)
162{ 162{
163 struct iommu_table *tbl; 163 struct iommu_table *tbl;
164 struct pci_dn *pdn = PCI_DN(dn); 164 struct pci_dn *pdn = PCI_DN(dn);
165 u32 *lsn = (u32 *)get_property(dn, "linux,logical-slot-number", NULL);
166
167 BUG_ON(lsn == NULL);
165 168
166 tbl = kmalloc(sizeof(struct iommu_table), GFP_KERNEL); 169 tbl = kmalloc(sizeof(struct iommu_table), GFP_KERNEL);
167 170
168 iommu_table_getparms_iSeries(pdn->busno, pdn->LogicalSlot, 0, tbl); 171 iommu_table_getparms_iSeries(pdn->busno, *lsn, 0, tbl);
169 172
170 /* Look for existing tce table */ 173 /* Look for existing tce table */
171 pdn->iommu_table = iommu_table_find(tbl); 174 pdn->iommu_table = iommu_table_find(tbl);
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c
index edaafbb817b7..86a869839d34 100644
--- a/arch/powerpc/platforms/iseries/pci.c
+++ b/arch/powerpc/platforms/iseries/pci.c
@@ -191,7 +191,6 @@ void iSeries_pcibios_init(void)
191 for (dn = NULL; (dn = of_get_next_child(node, dn)) != NULL;) { 191 for (dn = NULL; (dn = of_get_next_child(node, dn)) != NULL;) {
192 struct pci_dn *pdn; 192 struct pci_dn *pdn;
193 u32 *reg; 193 u32 *reg;
194 u32 *lsn;
195 194
196 reg = (u32 *)get_property(dn, "reg", NULL); 195 reg = (u32 *)get_property(dn, "reg", NULL);
197 if (reg == NULL) { 196 if (reg == NULL) {
@@ -203,12 +202,6 @@ void iSeries_pcibios_init(void)
203 printk(KERN_DEBUG "no subbus property!\n"); 202 printk(KERN_DEBUG "no subbus property!\n");
204 continue; 203 continue;
205 } 204 }
206 lsn = (u32 *)get_property(dn,
207 "linux,logical-slot-number", NULL);
208 if (lsn == NULL) {
209 printk(KERN_DEBUG "no logical-slot-number\n");
210 continue;
211 }
212 205
213 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); 206 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL);
214 if (pdn == NULL) 207 if (pdn == NULL)
@@ -218,7 +211,6 @@ void iSeries_pcibios_init(void)
218 pdn->busno = bus; 211 pdn->busno = bus;
219 pdn->devfn = (reg[0] >> 8) & 0xff; 212 pdn->devfn = (reg[0] >> 8) & 0xff;
220 pdn->bussubno = *busp; 213 pdn->bussubno = *busp;
221 pdn->LogicalSlot = *lsn;
222 } 214 }
223 } 215 }
224} 216}
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h
index 09079e400d2b..84a3075db524 100644
--- a/include/asm-powerpc/pci-bridge.h
+++ b/include/asm-powerpc/pci-bridge.h
@@ -78,10 +78,6 @@ struct pci_dn {
78 struct iommu_table *iommu_table; /* for phb's or bridges */ 78 struct iommu_table *iommu_table; /* for phb's or bridges */
79 struct pci_dev *pcidev; /* back-pointer to the pci device */ 79 struct pci_dev *pcidev; /* back-pointer to the pci device */
80 struct device_node *node; /* back-pointer to the device_node */ 80 struct device_node *node; /* back-pointer to the device_node */
81#ifdef CONFIG_PPC_ISERIES
82 int Flags; /* Possible flags(disable/bist)*/
83 u8 LogicalSlot; /* Hv Slot Index for Tces */
84#endif
85 u32 config_space[16]; /* saved PCI config space */ 81 u32 config_space[16]; /* saved PCI config space */
86}; 82};
87 83