summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-driver.c
diff options
context:
space:
mode:
authorChristoph Hellwig2018-07-30 09:38:42 +0200
committerBjorn Helgaas2018-07-30 22:58:01 +0200
commita8651194f9f61406cb8926feeeb7829258295b2a (patch)
treef428ce34e6a3bdcafbc3afa5d351f04a7f7e1269 /drivers/pci/pci-driver.c
parentPCI: Mark fall-through switch cases before enabling -Wimplicit-fallthrough (diff)
downloadkernel-qcow2-linux-a8651194f9f61406cb8926feeeb7829258295b2a.tar.gz
kernel-qcow2-linux-a8651194f9f61406cb8926feeeb7829258295b2a.tar.xz
kernel-qcow2-linux-a8651194f9f61406cb8926feeeb7829258295b2a.zip
PCI: Call dma_debug_add_bus() for pci_bus_type from PCI core
There is nothing arch-specific about PCI or dma-debug, so call dma_debug_add_bus() from the PCI core just after registering the bus type. Most of dma-debug is already generic; this just adds reporting of pending dma-allocations on driver unload for arches other than powerpc, sh, and x86. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r--drivers/pci/pci-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index c125d53033c6..7a02f94fd231 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -1667,7 +1667,7 @@ static int __init pci_driver_init(void)
if (ret)
return ret;
#endif
-
+ dma_debug_add_bus(&pci_bus_type);
return 0;
}
postcore_initcall(pci_driver_init);