[Cbe-oss-dev] [PATCH] cell: temp fix for axon dma_ops

Geoff Levand geoffrey.levand at am.sony.com
Sun Oct 8 08:30:37 EST 2006


This is just a temporary fix to the current cell axon support in
2.6.18-arnd2/axon-base-2.diff to make it build with CONFIG_PCI=n.

Fixes this build error when CONFIG_PCI=n:

arch/powerpc/kernel/built-in.o: undefined reference to `pci_dma_ops'


Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>

---

Index: cell--common--5/arch/powerpc/kernel/dma_64.c
===================================================================
--- cell--common--5.orig/arch/powerpc/kernel/dma_64.c
+++ cell--common--5/arch/powerpc/kernel/dma_64.c
@@ -28,8 +28,10 @@
 	if (dev->bus == &ibmebus_bus_type)
 		return &ibmebus_dma_ops;
 #endif
+#ifdef CONFIG_PCI
 	if (dev->bus == &of_platform_bus_type)
 		return &pci_dma_ops;
+#endif
 	return NULL;
 }
 





More information about the cbe-oss-dev mailing list