X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fnet%2Fnetconsole.c;h=87cea7a93209b7fad0fa074c0668dd53ea2d053a;hb=5cce2f820ce174e50106142a8d0997e3fa76f1dc;hp=677c89f0486f2a19f334db02b45a58a443b3e2da;hpb=3d5920a31bb846249385e1ca5c086662c39bc44e;p=karo-tx-uboot.git diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 677c89f048..87cea7a932 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -193,11 +193,11 @@ static void nc_send_packet(const char *buf, int len) if (eth->state != ETH_STATE_ACTIVE) { if (eth_is_on_demand_init()) { - if (eth_init(gd->bd) < 0) + if (eth_init() < 0) return; eth_set_last_protocol(NETCONS); } else - eth_init_state_only(gd->bd); + eth_init_state_only(); inited = 1; }