mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
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>
This commit is contained in:
parent
ed304be1b2
commit
a4ee7770c4
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user