From: Heinrich Schuchardt Date: Thu, 11 Jan 2018 09:06:59 +0100 Subject: [U-Boot] [PATCH 08/17] efi_loader: efi_disk_register: correctly determine if_type_name In-Reply-To: <20180111080708.18367-1-xypron.debian@gmx.de> References: <20180111080708.18367-1-xypron.debian@gmx.de> Message-ID: <20180111080708.18367-9-xypron.debian@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Heinrich Schuchardt 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 --- lib/efi_loader/efi_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.14.2