path: root/w29ee011.c
diff options
authorCarl-Daniel Hailfinger <>2010-07-17 14:49:30 +0000
committerCarl-Daniel Hailfinger <>2010-07-17 14:49:30 +0000
commitb51e58e50f23aa5f88d2e4259e82a488060f35ee (patch)
treeda65bbe1fbc5d7d9e8e1c177da39df415c3e7ea1 /w29ee011.c
parentabebe6b4c24b0c2278e45962ada9b5b3290bf56c (diff)
Use __clang_version__ macro
Newer llvm/clang versions (since r102686) have a __clang_version__ macro which can be used to print the exact clang version. Fix a case where chip_to_probe was referenced twice via extern, once at the function level and once in a global include file. Found by latest clang. Corresponding to flashrom svn r1087. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'w29ee011.c')
1 files changed, 0 insertions, 1 deletions
diff --git a/w29ee011.c b/w29ee011.c
index 6b88a1c..4fc8853 100644
--- a/w29ee011.c
+++ b/w29ee011.c
@@ -26,7 +26,6 @@ int probe_w29ee011(struct flashchip *flash)
chipaddr bios = flash->virtual_memory;
uint8_t id1, id2;
- extern char *chip_to_probe;
if (!chip_to_probe || strcmp(chip_to_probe, "W29EE011")) {
msg_cdbg("Probing disabled for Winbond W29EE011 because "
OpenPOWER on IntegriCloud