Message ID | 20180427125257.1081-1-mario.six@gdsys.cc |
---|---|
State | Accepted |
Commit | 3ce4304205eac2bc19b9fd67651d65f7d19d3cf2 |
Delegated to: | Joe Hershberger |
Headers | show |
Series | [U-Boot,v2,1/2] net: Initialize as many ethernet devices as possible | expand |
Hi Mario, https://patchwork.ozlabs.org/patch/905737/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 240b596534..2877700ff4 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -396,7 +396,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); @@ -425,7 +425,7 @@ int eth_initialize(void) eth_write_hwaddr(dev); - uclass_next_device(&dev); + uclass_next_device_check(&dev); num_devices++; } while (dev);