summaryrefslogtreecommitdiff
path: root/src/lib/boot_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/boot_device.c')
-rw-r--r--src/lib/boot_device.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/boot_device.c b/src/lib/boot_device.c
index efbbedb23e..429a6d8710 100644
--- a/src/lib/boot_device.c
+++ b/src/lib/boot_device.c
@@ -20,6 +20,13 @@ void __weak boot_device_init(void)
/* Provide weak do-nothing init. */
}
+int __weak boot_device_wp_region(struct region_device *rd,
+ const enum bootdev_prot_type type)
+{
+ /* return a failure, make aware WP is not implemented */
+ return -1;
+}
+
static int boot_device_subregion(const struct region *sub,
struct region_device *subrd,
const struct region_device *parent)