diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-04-19 04:05:14 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-23 23:05:41 +0300 |
commit | b406eb04c360b4842a02bcfedd9bbee015c3d127 (patch) | |
tree | 9a2b9fb7689639f7f3158e9be8ad35b8e30eb41f /disk | |
parent | 3c809dfed757c37b92ff543c8f1c941407bafc2e (diff) | |
download | u-boot-b406eb04c360b4842a02bcfedd9bbee015c3d127.tar.xz |
efi_loader: disk: a helper function to delete efi_disk objects
This function is expected to be called, in particular from dm's pre_remove
hook, when associated block devices no longer exist.
Add efi_disk_remove() function.
This function removes an efi_disk object for a raw disk device (UCLASS_BLK)
and related objects for its partitions (UCLASS_PARTITION).
So this function is expected to be called through driver model's "remove"
interface every time a raw disk device is to be disconnected.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'disk')
0 files changed, 0 insertions, 0 deletions