aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/iSeries_pci.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-06-21 20:15:48 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 21:46:30 -0400
commit061c063efce96b33f9e26d5f83a8eb0643fa493c (patch)
tree6e40638f187b5d1f540d0c777d2cdc4f83ccfbd0 /arch/ppc64/kernel/iSeries_pci.c
parenta2ebaf250fabc5c5644b707dbee44c9e0ec442e9 (diff)
[PATCH] ppc64 iSeries: remove some more members of iSeries_Device_Node
The AgentId, PhbId, FrameId, CardLocation and Location members of iSeries_Device_Node are stored early in the boot process just so that a message about the device can be printed later in the boot process. Remove them and construct the message by doing the VPD parsing at the time the message is printed. Also remove a few unused defines in iSeries_VpdInfo.c. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc64/kernel/iSeries_pci.c')
-rw-r--r--arch/ppc64/kernel/iSeries_pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/ppc64/kernel/iSeries_pci.c b/arch/ppc64/kernel/iSeries_pci.c
index 0a28b6ca65d0..356e4fd9a94f 100644
--- a/arch/ppc64/kernel/iSeries_pci.c
+++ b/arch/ppc64/kernel/iSeries_pci.c
@@ -223,9 +223,7 @@ static struct iSeries_Device_Node *build_device_node(HvBusNumber Bus,
223 node->DsaAddr.Dsa.busNumber = Bus; 223 node->DsaAddr.Dsa.busNumber = Bus;
224 node->DsaAddr.Dsa.subBusNumber = SubBus; 224 node->DsaAddr.Dsa.subBusNumber = SubBus;
225 node->DsaAddr.Dsa.deviceId = 0x10; 225 node->DsaAddr.Dsa.deviceId = 0x10;
226 node->AgentId = AgentId;
227 node->DevFn = PCI_DEVFN(ISERIES_ENCODE_DEVICE(AgentId), Function); 226 node->DevFn = PCI_DEVFN(ISERIES_ENCODE_DEVICE(AgentId), Function);
228 iSeries_Get_Location_Code(node);
229 return node; 227 return node;
230} 228}
231 229
@@ -299,7 +297,6 @@ void __init iSeries_pci_final_fixup(void)
299{ 297{
300 struct pci_dev *pdev = NULL; 298 struct pci_dev *pdev = NULL;
301 struct iSeries_Device_Node *node; 299 struct iSeries_Device_Node *node;
302 char Buffer[256];
303 int DeviceCount = 0; 300 int DeviceCount = 0;
304 301
305 PPCDBG(PPCDBG_BUSWALK, "iSeries_pcibios_fixup Entry.\n"); 302 PPCDBG(PPCDBG_BUSWALK, "iSeries_pcibios_fixup Entry.\n");
@@ -321,9 +318,7 @@ void __init iSeries_pci_final_fixup(void)
321 "pdev 0x%p <==> DevNode 0x%p\n", 318 "pdev 0x%p <==> DevNode 0x%p\n",
322 pdev, node); 319 pdev, node);
323 allocate_device_bars(pdev); 320 allocate_device_bars(pdev);
324 iSeries_Device_Information(pdev, Buffer, 321 iSeries_Device_Information(pdev, DeviceCount);
325 sizeof(Buffer));
326 printk("%d. %s\n", DeviceCount, Buffer);
327 iommu_devnode_init_iSeries(node); 322 iommu_devnode_init_iSeries(node);
328 } else 323 } else
329 printk("PCI: Device Tree not found for 0x%016lX\n", 324 printk("PCI: Device Tree not found for 0x%016lX\n",