]> git.baikalelectronics.ru Git - uboot.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)
commitd7e3ef3c2af5424339b36727252abe647e79367c
tree419e3d4ec2f5dd7a95640e1d51472df9d678105b
parent087bca1182f0deeaf2cda73ac5e61538937f577b
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