powerpc: Call dma_debug_add_bus for PCI and VIO buses
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kernel / vio.c
index 3bb5be5da31c0ec743537cd07d4fd97761d9f616..7a421e8fe7cad2159547c32e4b3a3530540ff93c 100644 (file)
@@ -37,8 +37,6 @@
 #include <asm/page.h>
 #include <asm/hvcall.h>
 
-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,