diff options
author | Tom Rini <trini@konsulko.com> | 2022-11-27 10:25:18 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-07 16:04:17 -0500 |
commit | fa9ea7607f09018fbe8c922609eacd43096e2f66 (patch) | |
tree | 38cb4d536f0b5919f6b8bdd36b028fbf9477c891 | |
parent | c7f15a3ee846d529097d357d8410804f05b5cc7f (diff) | |
download | u-boot-fa9ea7607f09018fbe8c922609eacd43096e2f66.zip u-boot-fa9ea7607f09018fbe8c922609eacd43096e2f66.tar.gz u-boot-fa9ea7607f09018fbe8c922609eacd43096e2f66.tar.bz2 |
net: netconsole: Remove non-DM_ETH code
As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | drivers/net/netconsole.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index cec96c5..1e52917 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -172,11 +172,7 @@ int nc_input_packet(uchar *pkt, struct in_addr src_ip, unsigned dest_port, static void nc_send_packet(const char *buf, int len) { -#ifdef CONFIG_DM_ETH struct udevice *eth; -#else - struct eth_device *eth; -#endif int inited = 0; uchar *pkt; uchar *ether; @@ -298,11 +294,7 @@ static int nc_stdio_getc(struct stdio_dev *dev) static int nc_stdio_tstc(struct stdio_dev *dev) { -#ifdef CONFIG_DM_ETH struct udevice *eth; -#else - struct eth_device *eth; -#endif if (input_recursion) return 0; |