diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-01-19 20:24:44 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-01-22 23:09:14 +0100 |
commit | 9bfca9f98aaf47ec4615ccf0fbd69623c2dca3cf (patch) | |
tree | 75cd3cbd2e7cea67a6443fcb0f4c3c13349d33f0 | |
parent | 5e55543e65c3ada3d83d6f1b1ddc153ea64b0948 (diff) | |
download | u-boot-9bfca9f98aaf47ec4615ccf0fbd69623c2dca3cf.tar.gz |
efi_loader: efi_disk_register: correctly determine if_type_name
The interface type name can be used to look up the interface type.
Don't confound it with the driver name which may be different.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | lib/efi_loader/efi_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 8771e880f6..da92729779 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -330,7 +330,7 @@ int efi_disk_register(void) dev; uclass_next_device_check(&dev)) { struct blk_desc *desc = dev_get_uclass_platdata(dev); - const char *if_typename = dev->driver->name; + const char *if_typename = blk_get_if_type_name(desc->if_type); printf("Scanning disk %s...\n", dev->name); |