dma-debug/x86: register pci bus for dma-debug leak detection
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 16 Mar 2009 16:50:28 +0000 (17:50 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2009 11:56:49 +0000 (12:56 +0100)
Impact: detect dma memory leaks for pci devices

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/pci-dma.c

index ebf7d454f210ef7bf8e1dc3baef884274afe8b62..c7c4776ff630238a2f8989c865cd0d2ac69f2ef8 100644 (file)
@@ -271,6 +271,10 @@ static int __init pci_iommu_init(void)
 {
        dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
 
+#ifdef CONFIG_PCI
+       dma_debug_add_bus(&pci_bus_type);
+#endif
+
        calgary_iommu_init();
 
        intel_iommu_init();