Skip to contentSkip to conversation

PPC64 pci_dn cleanups

PATCH New Paul Mackerras 1 participant 1 message Aug 3, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 pci_dn cleanups

This patch just cleans up arch/ppc64/kernel/pci_dn.c a bit, including:
- remove it from the iSeries build completely
- small changes to Makefile
- remove the "post" parameter from traverse_pci_devices as noone used it
- make traverse_all_pci_devices static
- remove CONFIG_PPC_PSERIES tests as we no longer build for iSeries
- some reformatting (closer to "standard")
- remove some of pointer casts

This has been built (with default config) on pSeries and pmac and built and run on iSeries.

arch/ppc64/kernel/Makefile +4 -7
diff -urN linux-2.5/arch/ppc64/kernel/Makefile ppc64/arch/ppc64/kernel/Makefile
@@ -15,14 +15,11 @@
 
 obj-$(CONFIG_PPC_OF) +=	of_device.o
 
-obj-$(CONFIG_PCI)	+= pci.o pci_dn.o pci_iommu.o
+pci-obj-$(CONFIG_PPC_ISERIES)	+= iSeries_pci.o iSeries_pci_reset.o \
+				     iSeries_IoMmTable.o
+pci-obj-$(CONFIG_PPC_PSERIES)	+= pci_dn.o pci_dma_direct.o
 
-ifdef CONFIG_PPC_ISERIES
-obj-$(CONFIG_PCI)	+= iSeries_pci.o iSeries_pci_reset.o \
-			     iSeries_IoMmTable.o 
-else
-obj-$(CONFIG_PCI)	+= pci_dma_direct.o
-endif
+obj-$(CONFIG_PCI)	+= pci.o pci_iommu.o $(pci-obj-y)
 
 obj-$(CONFIG_PPC_ISERIES) += iSeries_irq.o \
 			     iSeries_VpdInfo.o XmPciLpEvent.o \
arch/ppc64/kernel/eeh.c +1 -1
diff -urN linux-2.5/arch/ppc64/kernel/eeh.c ppc64/arch/ppc64/kernel/eeh.c
@@ -618,7 +618,7 @@
 
 		info.buid_lo = BUID_LO(buid);
 		info.buid_hi = BUID_HI(buid);
-		traverse_pci_devices(phb, early_enable_eeh, NULL, &info);
+		traverse_pci_devices(phb, early_enable_eeh, &info);
 	}
 
 	if (eeh_subsystem_enabled) {
arch/ppc64/kernel/pci.h +2 -2
diff -urN linux-2.5/arch/ppc64/kernel/pci.h ppc64/arch/ppc64/kernel/pci.h
@@ -34,8 +34,8 @@
  *******************************************************************/
 struct device_node;
 typedef void *(*traverse_func)(struct device_node *me, void *data);
-void *traverse_pci_devices(struct device_node *start, traverse_func pre, traverse_func post, void *data);
-void *traverse_all_pci_devices(traverse_func pre);
+void *traverse_pci_devices(struct device_node *start, traverse_func pre,
+		void *data);
 
 void pci_devs_phb_init(void);
 void pci_fix_bus_sysdata(void);
arch/ppc64/kernel/pci_dn.c +45 -56

216 lines not on this page · raw message