[U-Boot] [RFC PATCH 08/13] Avoid calling print_eths() with driver model
Simon Glass
sjg at chromium.org
Sun Mar 1 17:33:34 CET 2015
This function is not supported with driver model.
Note: There is really no reason for this as far as I can see. At some point
we should bring it back.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/cmd_bdinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index b4cce25..f16d5c7 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -377,7 +377,7 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
print_num("-> size", bd->bi_dram[i].size);
}
-#if defined(CONFIG_CMD_NET)
+#if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH)
print_eths();
#endif
printf("baudrate = %u bps\n", gd->baudrate);
--
2.2.0.rc0.207.ga3a616c
More information about the U-Boot
mailing list