]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Avoid calling print_eths() with driver model
authorSimon Glass <sjg@chromium.org>
Sun, 5 Apr 2015 22:07:38 +0000 (16:07 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:28:33 +0000 (22:28 +0200)
This function is not supported with driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
common/cmd_bdinfo.c

index b4cce25b067eaf80e368be6d492ef716ff39b8f1..f16d5c719f8e0f5726d0a5b3df40833d65e7cdcf 100644 (file)
@@ -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);