]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/alpha/kernel/core_marvel.c
alpha: Fix build error without CONFIG_VGA_HOSE.
[karo-tx-linux.git] / arch / alpha / kernel / core_marvel.c
index d5f0580746a5d632452816b00427c212230b0810..db72356714c1098b4005faa6365e7e7efc278cfc 100644 (file)
@@ -369,6 +369,7 @@ marvel_io7_present(gct6_node *node)
 static void __init
 marvel_find_console_vga_hose(void)
 {
+#ifdef CONFIG_VGA_HOSE
        u64 *pu64 = (u64 *)((u64)hwrpb + hwrpb->ctbt_offset);
 
        if (pu64[7] == 3) {     /* TERM_TYPE == graphics */
@@ -402,6 +403,7 @@ marvel_find_console_vga_hose(void)
                        pci_vga_hose = hose;
                }
        }
+#endif
 }
 
 gct6_search_struct gct_wanted_node_list[] = {