summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/boot_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/boot_device.c b/src/lib/boot_device.c
index e0353fc1abe5..9501d3ae2a30 100644
--- a/src/lib/boot_device.c
+++ b/src/lib/boot_device.c
@@ -29,6 +29,9 @@ int boot_device_ro_subregion(const struct region *sub,
{
const struct region_device *boot_dev;
+ /* Ensure boot device has been initialized at least once. */
+ boot_device_init();
+
boot_dev = boot_device_ro();
if (boot_dev == NULL)