diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-12-07 01:50:35 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-11 13:42:20 +1100 |
commit | 6a9057933421126ef8265c15b8220c015865b1eb (patch) | |
tree | cc7f30707a7865b0626a9540ea933e1788e870b8 /arch/powerpc/platforms/iseries/pci.c | |
parent | 7a73bd7f06dad5c466c5f3a4712696a3932a428b (diff) | |
download | linux-6a9057933421126ef8265c15b8220c015865b1eb.tar.gz linux-6a9057933421126ef8265c15b8220c015865b1eb.tar.bz2 linux-6a9057933421126ef8265c15b8220c015865b1eb.zip |
[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>
Diffstat (limited to 'arch/powerpc/platforms/iseries/pci.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/pci.c | 19 |
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) } ++num_dev; - pdev->sysdata = (void *)node; + pdev->sysdata = node; PCI_DN(node)->pcidev = pdev; allocate_device_bars(pdev); iSeries_Device_Information(pdev, num_dev); @@ -223,23 +223,6 @@ void __init iSeries_pci_final_fixup(void) mf_display_src(0xC9000200); } -#if 0 -/* - * Returns the device node for the passed pci_dev - * Sanity Check Node PciDev to passed pci_dev - * If none is found, returns a NULL which the client must handle. - */ -static struct device_node *get_device_node(struct pci_dev *pdev) -{ - struct device_node *node; - - node = pdev->sysdata; - if (node == NULL || PCI_DN(node)->pcidev != pdev) - node = find_device_node(pdev->bus->number, pdev->devfn); - return node; -} -#endif - /* * Config space read and write functions. * For now at least, we look for the device node for the bus and devfn |