]> git.sur5r.net Git - u-boot/blobdiff - net/eth-uclass.c
arm: socfpga: Add do_bridge_reset for Arria 10
[u-boot] / net / eth-uclass.c
index d20a1cf160766081b4d743bad7479e3b72cda937..e4b49229e38d02936f668ed18b2fa53bceee3191 100644 (file)
@@ -395,7 +395,7 @@ int eth_initialize(void)
         * This is accomplished by attempting to probe each device and calling
         * their write_hwaddr() operation.
         */
-       uclass_first_device(UCLASS_ETH, &dev);
+       uclass_first_device_check(UCLASS_ETH, &dev);
        if (!dev) {
                printf("No ethernet found.\n");
                bootstage_error(BOOTSTAGE_ID_NET_ETH_START);
@@ -424,7 +424,7 @@ int eth_initialize(void)
 
                        eth_write_hwaddr(dev);
 
-                       uclass_next_device(&dev);
+                       uclass_next_device_check(&dev);
                        num_devices++;
                } while (dev);