Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tony Prisk and committed by
Olof Johansson
a4ee7770 ed304be1

+4 -1
+4 -1
arch/arm/mach-vt8500/vt8500.c
··· 77 77 78 78 void __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 83 void __iomem *gpio_base; 84 + #endif 82 85 83 86 #ifdef CONFIG_FB_VT8500 84 87 fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb");