aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vt8500/vt8500.c
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2012-10-06 21:02:14 -0400
committerOlof Johansson <olof@lixom.net>2012-10-07 10:20:53 -0400
commita4ee7770c4a0eefda655bf1e19ba0eb48da828a6 (patch)
treea7a1e06762bc88200a77d4a28fee0fb109fae1ff /arch/arm/mach-vt8500/vt8500.c
parented304be1b222398cd15954724e95787bb42e3b37 (diff)
vt8500: Fix build warning when no framebuffer selected
Check for framebuffer defines before declaring variables in vt8500.c Removes a compile-time warning about unused variables. Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-vt8500/vt8500.c')
-rw-r--r--arch/arm/mach-vt8500/vt8500.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-vt8500/vt8500.c b/arch/arm/mach-vt8500/vt8500.c
index 587ea950d08b..8d3871f110a5 100644
--- a/arch/arm/mach-vt8500/vt8500.c
+++ b/arch/arm/mach-vt8500/vt8500.c
@@ -77,8 +77,11 @@ static void vt8500_power_off(void)
77 77
78void __init vt8500_init(void) 78void __init vt8500_init(void)
79{ 79{
80 struct device_node *np, *fb; 80 struct device_node *np;
81#if defined(CONFIG_FB_VT8500) || defined(CONFIG_FB_WM8505)
82 struct device_node *fb;
81 void __iomem *gpio_base; 83 void __iomem *gpio_base;
84#endif
82 85
83#ifdef CONFIG_FB_VT8500 86#ifdef CONFIG_FB_VT8500
84 fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb"); 87 fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb");