PCI: Call dma_debug_add_bus() for pci_bus_type from PCI core
authorChristoph Hellwig <hch@lst.de>
Mon, 30 Jul 2018 07:38:42 +0000 (09:38 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Jul 2018 20:58:01 +0000 (15:58 -0500)
commita8651194f9f61406cb8926feeeb7829258295b2a
treef428ce34e6a3bdcafbc3afa5d351f04a7f7e1269
parentd6488ac19aabcc6c85a74b69eaf1b7301124c323
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)
arch/powerpc/kernel/dma.c
arch/sh/drivers/pci/pci.c
arch/x86/kernel/pci-dma.c
drivers/pci/pci-driver.c