mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
dm: usb: eth: Support driver model with USB Ethernet
At present USB Ethernet does not work with CONFIG_DM_ETH. Add driver model support to this feature, so that it can work alongside other Ethernet devices with driver model. It was found that quite a bit of code is common in most of the USB Ethernet drivers. Add this code to the common layer to reduce the amount of duplicate code needed in USB Ethernet drivers when CONFIG_DM_ETH is used. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user