X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2Feth_legacy.c;h=f383ccce0b92e528df54c8bb02ae966b61bce813;hb=d17ab6e1289b1d705c75de8a2351218962fb7352;hp=e0ef4a11a7a3d252941891a38a41246f56892354;hpb=52f24238046ca28085f6de946d0358e5c7c7cbe8;p=platform%2Fkernel%2Fu-boot.git diff --git a/net/eth_legacy.c b/net/eth_legacy.c index e0ef4a1..f383ccc 100644 --- a/net/eth_legacy.c +++ b/net/eth_legacy.c @@ -8,9 +8,13 @@ #include #include #include +#include #include +#include #include #include +#include +#include #include #include #include "eth_internal.h" @@ -21,12 +25,12 @@ DECLARE_GLOBAL_DATA_PTR; * CPU and board-specific Ethernet initializations. Aliased function * signals caller to move on */ -static int __def_eth_init(bd_t *bis) +static int __def_eth_init(struct bd_info *bis) { return -1; } -int cpu_eth_init(bd_t *bis) __attribute__((weak, alias("__def_eth_init"))); -int board_eth_init(bd_t *bis) __attribute__((weak, alias("__def_eth_init"))); +int cpu_eth_init(struct bd_info *bis) __attribute__((weak, alias("__def_eth_init"))); +int board_eth_init(struct bd_info *bis) __attribute__((weak, alias("__def_eth_init"))); #ifdef CONFIG_API static struct { @@ -110,7 +114,7 @@ static int on_ethaddr(const char *name, const char *value, enum env_op op, return 0; /* look for an index after "eth" */ - index = simple_strtoul(name + 3, NULL, 10); + index = dectoul(name + 3, NULL); dev = eth_devices; do { @@ -258,7 +262,7 @@ int eth_initialize(void) } if (!eth_devices) { - puts("No ethernet found.\n"); + log_err("No ethernet found.\n"); bootstage_error(BOOTSTAGE_ID_NET_ETH_START); } else { struct eth_device *dev = eth_devices; @@ -316,7 +320,7 @@ int eth_init(void) struct eth_device *old_current; if (!eth_current) { - puts("No ethernet found.\n"); + log_err("No ethernet found.\n"); return -ENODEV; } @@ -362,7 +366,7 @@ int eth_send(void *packet, int length) ret = eth_current->send(eth_current, packet, length); #if defined(CONFIG_CMD_PCAP) if (ret >= 0) - pcap_post(packet, lengeth, true); + pcap_post(packet, length, true); #endif return ret; }