]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/iseries/pci.c
[POWERPC] iSeries: Remove some dead code from pci.c
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / iseries / pci.c
index 705f52c7ce54541f2c4a80efc0e6c27bbe7da544..cff832a64e1f96f964390d10eb8f27f4356914f4 100644 (file)
@@ -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