projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: e1000: Fix build warnings for 32-bit
[oweals/u-boot.git]
/
drivers
/
net
/
xilinx_axi_emac.c
diff --git
a/drivers/net/xilinx_axi_emac.c
b/drivers/net/xilinx_axi_emac.c
index bb5044b31f5ed68b0947fa8b68af4ce4db3a193a..df053feee8c8b2de3df918d91ee1def1e2fa6403 100644
(file)
--- a/
drivers/net/xilinx_axi_emac.c
+++ b/
drivers/net/xilinx_axi_emac.c
@@
-261,6
+261,10
@@
static int setup_phy(struct eth_device *dev)
phydev->dev->name);
return 0;
}
phydev->dev->name);
return 0;
}
+ if (!phydev->link) {
+ printf("%s: No link.\n", phydev->dev->name);
+ return 0;
+ }
switch (phydev->speed) {
case 1000:
switch (phydev->speed) {
case 1000:
@@
-552,7
+556,7
@@
static int axiemac_recv(struct eth_device *dev)
#endif
/* Pass the received frame up for processing */
if (length)
#endif
/* Pass the received frame up for processing */
if (length)
-
NetReceive
(rxframe, length);
+
net_process_received_packet
(rxframe, length);
#ifdef DEBUG
/* It is useful to clear buffer to be sure that it is consistent */
#ifdef DEBUG
/* It is useful to clear buffer to be sure that it is consistent */