Skip to content

Commit

Permalink
vt8500: Fix build warning when no framebuffer selected
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tony Prisk authored and Olof Johansson committed Oct 7, 2012
1 parent ed304be commit a4ee777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/mach-vt8500/vt8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ static void vt8500_power_off(void)

void __init vt8500_init(void)
{
struct device_node *np, *fb;
struct device_node *np;
#if defined(CONFIG_FB_VT8500) || defined(CONFIG_FB_WM8505)
struct device_node *fb;
void __iomem *gpio_base;
#endif

#ifdef CONFIG_FB_VT8500
fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb");
Expand Down

0 comments on commit a4ee777

Please sign in to comment.