diff options
Diffstat (limited to 'src/security/vboot/vbnv_flash.c')
-rw-r--r-- | src/security/vboot/vbnv_flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/security/vboot/vbnv_flash.c b/src/security/vboot/vbnv_flash.c index 908846fe70..86c43cd302 100644 --- a/src/security/vboot/vbnv_flash.c +++ b/src/security/vboot/vbnv_flash.c @@ -16,6 +16,7 @@ #include <arch/early_variables.h> #include <commonlib/region.h> #include <console/console.h> +#include <fmap.h> #include <string.h> #include <vb2_api.h> #include <security/vboot/vboot_common.h> @@ -67,7 +68,7 @@ static int init_vbnv(void) int offset; int i; - if (vboot_named_region_device_rw("RW_NVRAM", rdev) || + if (fmap_locate_area_as_rdev_rw("RW_NVRAM", rdev) || region_device_sz(rdev) < BLOB_SIZE) { printk(BIOS_ERR, "%s: failed to locate NVRAM\n", __func__); return 1; |