Searched hist:f66529f998e59acbd64ccce3adfce8eedfa52da8 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | uclass.c | f66529f998e59acbd64ccce3adfce8eedfa52da8 Sat Apr 25 04:33:07 UTC 2015 Simon Glass <sjg@chromium.org> dm: core: Correct bug introduced in uclass_first/next_device()
These functions now rely on uclass_find_first/next_device() and assume that they will either return failure (-ve error code) or a device. In fact, coming to the end of a list is not considered failure and they return 0 in that case.
The logic to deal with this was replaced in commit acb9ca2a with just using uclass_get_device_tail(). Add back the missing logic. This bug was caught by unit tests but since they were broken for other reasons at the time, this was not noticed.
Signed-off-by: Simon Glass <sjg@chromium.org>
|