Commit a41e6daf0555b2461b3a3ae457bf9b9626e2d855

Authored by Simon Glass
1 parent b2b1100a3b

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>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

drivers/core/device.c
... ... @@ -431,10 +431,8 @@
431 431  
432 432 if (drv->probe) {
433 433 ret = drv->probe(dev);
434   - if (ret) {
435   - dev->flags &= ~DM_FLAG_ACTIVATED;
  434 + if (ret)
436 435 goto fail;
437   - }
438 436 }
439 437  
440 438 ret = uclass_post_probe_device(dev);