]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/net/netconsole.c
net: Remove the bd* parameter from net stack functions
[karo-tx-uboot.git] / drivers / net / netconsole.c
index 623f7492c753652a8f0736658965756bd2e82438..87cea7a93209b7fad0fa074c0668dd53ea2d053a 100644 (file)
@@ -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;
        }
@@ -256,7 +256,7 @@ static void nc_puts(struct stdio_dev *dev, const char *s)
 
        len = strlen(s);
        while (len) {
-               int send_len = min(len, sizeof(input_buffer));
+               int send_len = min(len, (int)sizeof(input_buffer));
                nc_send_packet(s, send_len);
                len -= send_len;
                s += send_len;