summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/cbfs.h8
-rw-r--r--src/lib/cbfs.c13
-rw-r--r--src/lib/prog_loaders.c2
3 files changed, 1 insertions, 22 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index d76fdd3e80..60129d3bb2 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -79,16 +79,10 @@ int cbfs_default_props(struct cbfs_props *props);
/* Return < 0 on error otherwise props are filled out accordingly. */
int cbfs_boot_region_properties(struct cbfs_props *props);
-/* Allow external logic to take action prior to locating a program
- * (stage or payload). */
-void cbfs_prepare_program_locate(void);
-
/* Object used to identify location of current cbfs to use for cbfs_boot_*
- * operations. It's used by cbfs_boot_region_properties() and
- * cbfs_prepare_program_locate(). */
+ * operations. It's used by cbfs_boot_region_properties(). */
struct cbfs_locator {
const char *name;
- void (*prepare)(void);
/* Returns 0 on successful fill of cbfs properties. */
int (*locate)(struct cbfs_props *props);
};
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 408e685256..fbe6e43496 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -359,16 +359,3 @@ int cbfs_boot_region_properties(struct cbfs_props *props)
return -1;
}
-
-void cbfs_prepare_program_locate(void)
-{
- int i;
-
- boot_device_init();
-
- for (i = 0; i < ARRAY_SIZE(locators); i++) {
- if (locators[i]->prepare == NULL)
- continue;
- locators[i]->prepare();
- }
-}
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 43f4689940..57874967ec 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -43,8 +43,6 @@ int prog_locate(struct prog *prog)
if (prog_locate_hook(prog))
return -1;
- cbfs_prepare_program_locate();
-
if (cbfs_boot_locate(&file, prog_name(prog), NULL))
return -1;