aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-12-06 09:50:35 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-10 21:42:20 -0500
commit6a9057933421126ef8265c15b8220c015865b1eb (patch)
treecc7f30707a7865b0626a9540ea933e1788e870b8
parent7a73bd7f06dad5c466c5f3a4712696a3932a428b (diff)
[POWERPC] iSeries: Remove some dead code from pci.c
and an unnecessary cast. 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/pci.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c
index 705f52c7ce54..cff832a64e1f 100644
--- a/arch/powerpc/platforms/iseries/pci.c
+++ b/arch/powerpc/platforms/iseries/pci.c
@@ -210,7 +210,7 @@ void __init iSeries_pci_final_fixup(void)
210 } 210 }
211 211
212 ++num_dev; 212 ++num_dev;
213 pdev->sysdata = (void *)node; 213 pdev->sysdata = node;
214 PCI_DN(node)->pcidev = pdev; 214 PCI_DN(node)->pcidev = pdev;
215 allocate_device_bars(pdev); 215 allocate_device_bars(pdev);
216 iSeries_Device_Information(pdev, num_dev); 216 iSeries_Device_Information(pdev, num_dev);
@@ -223,23 +223,6 @@ void __init iSeries_pci_final_fixup(void)
223 mf_display_src(0xC9000200); 223 mf_display_src(0xC9000200);
224} 224}
225 225
226#if 0
227/*
228 * Returns the device node for the passed pci_dev
229 * Sanity Check Node PciDev to passed pci_dev
230 * If none is found, returns a NULL which the client must handle.
231 */
232static struct device_node *get_device_node(struct pci_dev *pdev)
233{
234 struct device_node *node;
235
236 node = pdev->sysdata;
237 if (node == NULL || PCI_DN(node)->pcidev != pdev)
238 node = find_device_node(pdev->bus->number, pdev->devfn);
239 return node;
240}
241#endif
242
243/* 226/*
244 * Config space read and write functions. 227 * Config space read and write functions.
245 * For now at least, we look for the device node for the bus and devfn 228 * For now at least, we look for the device node for the bus and devfn