Patchwork [U-Boot] tqm5200.c: fix warning: 'edid_buf' defined but not used

login
register
mail settings
Submitter Wolfgang Denk
Date Dec. 23, 2010, 6:58 p.m.
Message ID <1293130738-19657-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/76546/
State Accepted
Commit 42df1e1618f2bcae308ad193a136b72b82103bea
Headers show

Comments

Wolfgang Denk - Dec. 23, 2010, 6:58 p.m.
Commit 98e6956 "mpc52xx: add support for tqm52xx based board charon"
casued build warnings on some systems.  Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
---
 board/tqc/tqm5200/tqm5200.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Wolfgang Denk - Jan. 9, 2011, 4:55 p.m.
Dear Wolfgang Denk,

In message <1293130738-19657-1-git-send-email-wd@denx.de> you wrote:
> Commit 98e6956 "mpc52xx: add support for tqm52xx based board charon"
> casued build warnings on some systems.  Fix these.
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Heiko Schocher <hs@denx.de>
> ---
>  board/tqc/tqm5200/tqm5200.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied (after fixing the 'casued' typo).

Best regards,

Wolfgang Denk

Patch

diff --git a/board/tqc/tqm5200/tqm5200.c b/board/tqc/tqm5200/tqm5200.c
index 7cbcd43..352226f 100644
--- a/board/tqc/tqm5200/tqm5200.c
+++ b/board/tqc/tqm5200/tqm5200.c
@@ -54,7 +54,8 @@  DECLARE_GLOBAL_DATA_PTR;
 void ps2mult_early_init(void);
 #endif
 
-#if defined(CONFIG_VIDEO)
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) && \
+    defined(CONFIG_VIDEO)
 /*
  * EDID block has been generated using Phoenix EDID Designer 1.3.
  * This tool creates a text file containing: