]> git.sur5r.net Git - u-boot/commit
efi_loader: disk: Fix CONFIG_BLK breakage
authorAlexander Graf <agraf@suse.de>
Fri, 5 Aug 2016 12:49:53 +0000 (14:49 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Aug 2016 17:32:59 +0000 (13:32 -0400)
commitf9d334bdfce2358c6eada4138a2102afc46fb124
treee34acbe5ded88b6f42c415570e2affa9d20fc6a8
parent45313e83b842ab31464e2593ab2e39aa0287fbf7
efi_loader: disk: Fix CONFIG_BLK breakage

When using CONFIG_BLK, there were 2 issues:

  1) The name we generate the device with has to match the
     name we set in efi_set_bootdev()

  2) The device we pass into our block functions was wrong,
     we should not rediscover it but just use the already known
     pointer.

This patch fixes both issues.

Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c
lib/efi_loader/efi_disk.c