[PATCH 2/2] dm: core: Add DM_DEVICE_REMOVE condition to all exit paths

Simon Glass sjg at chromium.org
Sun Feb 7 01:16:43 CET 2021


At present device_bind() does some unnecessary work if a device fails to
bind in SPL. Add the missing conditions.

Also fix a style nit in the same function while we are here.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/core/device.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list