summaryrefslogtreecommitdiffstats
path: root/common/boot.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-05 16:28:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-06 10:48:59 +0200
commit18c05a168124a027aa481ab79d4527f1767939e6 (patch)
tree06c5642d88e2131ca95104da2a5d71a904774d52 /common/boot.c
parentb79ce1382f201bf2e098bafe618a81a4a83e7d1e (diff)
downloadbarebox-18c05a168124a027aa481ab79d4527f1767939e6.tar.gz
bootchooser: register as bootentry provider
Instead of using a global function called by bootentry_create_from_name(), register the bootchooser as bootentry provider. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/boot.c')
-rw-r--r--common/boot.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/boot.c b/common/boot.c
index 3280ac4..cef3d5e 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -289,12 +289,6 @@ int bootentry_create_from_name(struct bootentries *bootentries,
found += ret;
}
- if (IS_ENABLED(CONFIG_BOOTCHOOSER) && !strcmp(name, "bootchooser")) {
- ret = bootchooser_create_bootentry(bootentries);
- if (ret > 0)
- found += ret;
- }
-
if (!found) {
char *path;