Skip to contentSkip to conversation

cmd_bdinfo: check for CONFIG_ARC instead of CONFIG_ARC700

PATCH In review Alexey Brodkin 2 participants 2 messages Dec 26, 2014 – Jan 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_bdinfo: check for CONFIG_ARC instead of CONFIG_ARC700

For all flavours of ARC we execute the same code in "bdinfo" so we may safely check for CONFIG_ARC. This is especially important since we're about to add more types of ARC so existing check won't work in all cases.

---
 common/cmd_bdinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_bdinfo.c +1 -1
index f0b713c..e6d8a7a 100644
@@ -515,7 +515,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	return 0;
 }
 
-#elif defined(CONFIG_ARC700)
+#elif defined(CONFIG_ARC)
 
 int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
Signature · 1 line
2.1.0
#1 lore raw
Quoted 7 lines · Alexey Brodkin

For all flavours of ARC we execute the same code in "bdinfo" so we may safely check for CONFIG_ARC. This is especially important since we're about to add more types of ARC so existing check won't work in all cases.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150107/4e0b0c4a/attachment.pgp>