Skip to content

Commit a4ee777

Browse files
tonypriskolofj
authored andcommitted
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>
1 parent ed304be commit a4ee777

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/arm/mach-vt8500/vt8500.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ static void vt8500_power_off(void)
7777

7878
void __init vt8500_init(void)
7979
{
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;
8183
void __iomem *gpio_base;
84+
#endif
8285

8386
#ifdef CONFIG_FB_VT8500
8487
fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb");

0 commit comments

Comments
 (0)