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
@ -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…
Reference in New Issue
Block a user