diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-05-19 02:51:57 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-05-24 02:08:56 -0400 |
commit | 403fac4f83bd8e089a192c542511fbeb2729a6c5 (patch) | |
tree | f33cf1d6caee0cb7edaa977ec8cc5d6f340d93b7 /arch/powerpc/platforms/iseries/iommu.c | |
parent | b02527931672749d404b5f640b7e086afc37f4e0 (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>
Diffstat (limited to 'arch/powerpc/platforms/iseries/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/iommu.c | 5 |
1 files changed, 4 insertions, 1 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); |