security/vboot: Remove vboot_named_region_device(_rw)

Remove vboot_named_region_device(_rw) and use
fmap_locate_area_as_rdev(_rw) directly.

BRANCH=none
BUG=none
TEST=emerge-kukui coreboot

Change-Id: I244ac4e01ae5b80285162b3baffc0b30aa057bfb
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36922
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Yu-Ping Wu
2019-11-18 11:25:47 +08:00
committed by Aaron Durbin
parent ab8edda14a
commit 29c8fa4769
4 changed files with 5 additions and 19 deletions

View File

@@ -24,16 +24,6 @@
#include <security/vboot/vbnv.h>
#include <vb2_api.h>
int vboot_named_region_device(const char *name, struct region_device *rdev)
{
return fmap_locate_area_as_rdev(name, rdev);
}
int vboot_named_region_device_rw(const char *name, struct region_device *rdev)
{
return fmap_locate_area_as_rdev_rw(name, rdev);
}
/* Check if it is okay to enable USB Device Controller (UDC). */
int vboot_can_enable_udc(void)
{