dm: usb: eth: Support driver model with USB Ethernet
[oweals/u-boot.git] / common / cmd_usb.c
index 6198d063d1d6004a2c95dc498595ded96da95bbf..0ade7759f08e68b6cdffb5f9466016df09cc84d6 100644 (file)
@@ -22,7 +22,7 @@
 #ifdef CONFIG_USB_STORAGE
 static int usb_stor_curr_dev = -1; /* current device */
 #endif
-#ifdef CONFIG_USB_HOST_ETHER
+#if defined(CONFIG_USB_HOST_ETHER) && !defined(CONFIG_DM_ETH)
 static int __maybe_unused usb_ether_curr_dev = -1; /* current ethernet device */
 #endif