]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: efi_disk_register: correctly determine if_type_name
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 19 Jan 2018 19:24:44 +0000 (20:24 +0100)
committerAlexander Graf <agraf@suse.de>
Mon, 22 Jan 2018 22:09:14 +0000 (23:09 +0100)
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>
lib/efi_loader/efi_disk.c

index 8771e880f6d70b8ce3186506c3f21cd3e708f1a2..da92729779c493c94475669dfbb620e319f5d9d9 100644 (file)
@@ -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);