summaryrefslogtreecommitdiff
path: root/api/api_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/api_net.c')
-rw-r--r--api/api_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api_net.c b/api/api_net.c
index 04e4f4a..67c2916 100644
--- a/api/api_net.c
+++ b/api/api_net.c
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define errf(fmt, args...) do { printf("ERROR @ %s(): ", __func__); printf(fmt, ##args); } while (0)
-#ifdef CONFIG_CMD_NET
+#if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH)
static int dev_valid_net(void *cookie)
{