From e386a767ee1558015a09341f23e6550615dfa9e5 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sun, 24 Jun 2012 18:25:28 +0000 Subject: [PATCH] --- yaml --- r: 313676 b: refs/heads/master c: a980349725346ce7e3c1774e327c2f1fdca4593d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/vio.h | 2 ++ trunk/arch/powerpc/kernel/dma.c | 10 +++++++++- trunk/arch/powerpc/kernel/vio.c | 4 +--- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 150c93e91396..875d719c88fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 44b372d8a099a7042f9f17ebd4941050e38c1773 +refs/heads/master: a980349725346ce7e3c1774e327c2f1fdca4593d diff --git a/trunk/arch/powerpc/include/asm/vio.h b/trunk/arch/powerpc/include/asm/vio.h index b19adf751dd9..df81cb72d1e0 100644 --- a/trunk/arch/powerpc/include/asm/vio.h +++ b/trunk/arch/powerpc/include/asm/vio.h @@ -44,6 +44,8 @@ */ #define VIO_CMO_MIN_ENT 1562624 +extern struct bus_type vio_bus_type; + struct iommu_table; /* diff --git a/trunk/arch/powerpc/kernel/dma.c b/trunk/arch/powerpc/kernel/dma.c index b1ec983dcec8..289be751cd75 100644 --- a/trunk/arch/powerpc/kernel/dma.c +++ b/trunk/arch/powerpc/kernel/dma.c @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include #include @@ -205,7 +207,13 @@ EXPORT_SYMBOL_GPL(dma_get_required_mask); static int __init dma_init(void) { - dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); + dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); +#ifdef CONFIG_PCI + dma_debug_add_bus(&pci_bus_type); +#endif +#ifdef CONFIG_IBMVIO + dma_debug_add_bus(&vio_bus_type); +#endif return 0; } diff --git a/trunk/arch/powerpc/kernel/vio.c b/trunk/arch/powerpc/kernel/vio.c index 3bb5be5da31c..7a421e8fe7ca 100644 --- a/trunk/arch/powerpc/kernel/vio.c +++ b/trunk/arch/powerpc/kernel/vio.c @@ -37,8 +37,6 @@ #include #include -static struct bus_type vio_bus_type; - static struct vio_dev vio_bus_device = { /* fake "parent" device */ .name = "vio", .type = "", @@ -1580,7 +1578,7 @@ static int vio_hotplug(struct device *dev, struct kobj_uevent_env *env) return 0; } -static struct bus_type vio_bus_type = { +struct bus_type vio_bus_type = { .name = "vio", .dev_attrs = vio_dev_attrs, .uevent = vio_hotplug,