summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/core_marvel.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2016-10-24 22:07:41 -0700
committerMatt Turner <mattst88@gmail.com>2017-08-29 12:01:41 -0700
commite42faf553c8d7bdd4735cc6b9a9e969aa985d078 (patch)
tree544d2d9b78e228c4145113d5d2faa1d9954748f7 /arch/alpha/kernel/core_marvel.c
parent143c97cc652949893c8056c679012f0aeccb80e5 (diff)
downloadlinux-e42faf553c8d7bdd4735cc6b9a9e969aa985d078.tar.bz2
alpha: Fix build error without CONFIG_VGA_HOSE.
pci_vga_hose is #defined to 0 in include/asm/vga.h if CONFIG_VGA_HOSE is not set. Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/kernel/core_marvel.c')
-rw-r--r--arch/alpha/kernel/core_marvel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c
index d5f0580746a5..db72356714c1 100644
--- a/arch/alpha/kernel/core_marvel.c
+++ b/arch/alpha/kernel/core_marvel.c
@@ -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[] = {