]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - api/api_net.c
Fix FreeBSD loader API so that it works on both 32-bit and 64-bit targets.
[thirdparty/u-boot.git] / api / api_net.c
index 7b3805e8fdbec822a38739074d107857112d86ee..04e4f4a44eff9ce9d6e4688a978e1179b7599c66 100644 (file)
@@ -37,7 +37,7 @@ int dev_open_net(void *cookie)
        if (!dev_valid_net(cookie))
                return API_ENODEV;
 
-       if (eth_init(gd->bd) < 0)
+       if (eth_init() < 0)
                return API_EIO;
 
        return 0;