diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/e1000_spi.c | 3 | ||||
-rw-r--r-- | drivers/net/phy/aquantia.c | 2 | ||||
-rw-r--r-- | drivers/net/sandbox-raw-bus.c | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c index b38f4df9f31..aecd290d729 100644 --- a/drivers/net/e1000_spi.c +++ b/drivers/net/e1000_spi.c @@ -77,9 +77,6 @@ static inline struct e1000_hw *e1000_hw_from_spi(struct spi_slave *spi) return container_of(spi, struct e1000_hw, spi); } -/* Not sure why all of these are necessary */ -void spi_init(void) { /* Nothing to do */ } - struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, unsigned int max_hz, unsigned int mode) { diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 37749e01852..a0abb232992 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -8,7 +8,7 @@ #include <common.h> #include <dm.h> #include <phy.h> -#include <crc.h> +#include <u-boot/crc.h> #include <malloc.h> #include <asm/byteorder.h> #include <fs.h> diff --git a/drivers/net/sandbox-raw-bus.c b/drivers/net/sandbox-raw-bus.c index 76d65afe6c8..0086f25fc1f 100644 --- a/drivers/net/sandbox-raw-bus.c +++ b/drivers/net/sandbox-raw-bus.c @@ -42,7 +42,7 @@ static int eth_raw_bus_post_bind(struct udevice *dev) device_probe(child); priv = dev_get_priv(child); if (priv) { - memcpy(priv->host_ifname, i->if_name, IFNAMSIZ); + strcpy(priv->host_ifname, i->if_name); priv->host_ifindex = i->if_index; priv->local = local; } |