Printing coreboot debug messages on VGA console is pretty much useless, since
[coreboot.git] / src / northbridge / amd / amdk8 / northbridge.c
index c7bf4919fb5dec28aa886299e5f66c4e87477ea9..cc99e5123b9a59c2aa6afc70aa4f3f548d349907 100644 (file)
@@ -485,10 +485,6 @@ static void amdk8_set_resource(device_t dev, struct resource *resource, unsigned
        report_resource_stored(dev, resource, buf);
 }
 
-#if CONFIG_CONSOLE_VGA_MULTI == 1
-extern device_t vga_pri;       // the primary vga device, defined in device.c
-#endif
-
 static void amdk8_create_vga_resource(device_t dev, unsigned nodeid)
 {
        struct resource *resource;
@@ -498,7 +494,8 @@ static void amdk8_create_vga_resource(device_t dev, unsigned nodeid)
         * we only deal with the 'first' vga card */
        for (link = dev->link_list; link; link = link->next) {
                if (link->bridge_ctrl & PCI_BRIDGE_CTL_VGA) {
-#if CONFIG_CONSOLE_VGA_MULTI == 1
+#if CONFIG_MULTIPLE_VGA_ADAPTERS == 1
+                       extern device_t vga_pri; // the primary vga device, defined in device.c
                        printk(BIOS_DEBUG, "VGA: vga_pri bus num = %d link bus range [%d,%d]\n", vga_pri->bus->secondary,
                                link->secondary,link->subordinate);
                        /* We need to make sure the vga_pri is under the link */