mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
dm: core: Don't clear active flag twice when probe() fails
Remove this duplicated code, since the 'fail' label does this immediately. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b2b1100a3b
commit
a41e6daf05
1 changed files with 1 additions and 3 deletions
|
@ -431,10 +431,8 @@ int device_probe(struct udevice *dev)
|
|||
|
||||
if (drv->probe) {
|
||||
ret = drv->probe(dev);
|
||||
if (ret) {
|
||||
dev->flags &= ~DM_FLAG_ACTIVATED;
|
||||
if (ret)
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
ret = uclass_post_probe_device(dev);
|
||||
|
|
Loading…
Add table
Reference in a new issue