]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Avoid partially removing devices
authorSimon Glass <sjg@chromium.org>
Sun, 24 Jan 2021 21:32:45 +0000 (14:32 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commitc51d2e704a1c89d504b379b133bd552c3387fa6c
tree419e3d4ec2f5dd7a95640e1d51472df9d678105b
parentb1f25fcfefc4c8e05f91d948f316c7bdbb4cd527
dm: core: Avoid partially removing devices

At present if device_remove() decides that the device should not actually
be removed, it still calls the uclass pre_remove() method and powers the
device down.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device-remove.c
include/dm/device-internal.h
test/dm/virtio.c