]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add DM_DEVICE_REMOVE condition to all exit paths
authorSimon Glass <sjg@chromium.org>
Thu, 4 Feb 2021 04:29:44 +0000 (21:29 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Mar 2021 02:17:25 +0000 (19:17 -0700)
commit15421b71bccc3a12e64cfa1e8089e50cc2a93fe4
treeec893da315794fe9f2b695f7c08f4a0d3212ccba
parent24fd7e383da23adf785fc2d2b8bddfc29b85346b
dm: core: Add DM_DEVICE_REMOVE condition to all exit paths

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@chromium.org>
drivers/core/device.c