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:52 +0200
commitb79ce1382f201bf2e098bafe618a81a4a83e7d1e (patch)
treea7a64fbd0fae986d48e08c5d7e7cfc97d198205b /common/boot.c
parentb9abc5322e2a18828fbfab5e081f846f0c4199cc (diff)
downloadbarebox-b79ce1382f201bf2e098bafe618a81a4a83e7d1e.tar.gz
blspec: register as bootentry provider
Instead of using a global function called by bootentry_create_from_name(), register blspec as bootentry provider. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/boot.c')
-rw-r--r--common/boot.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/boot.c b/common/boot.c
index f0359cf..3280ac4 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -283,18 +283,6 @@ int bootentry_create_from_name(struct bootentries *bootentries,
struct bootentry_provider *p;
int found = 0, ret;
- if (IS_ENABLED(CONFIG_BLSPEC)) {
- ret = blspec_scan_devicename(bootentries, name);
- if (ret > 0)
- found += ret;
-
- if (*name == '/' || !strncmp(name, "nfs://", 6)) {
- ret = blspec_scan_directory(bootentries, name);
- if (ret > 0)
- found += ret;
- }
- }
-
list_for_each_entry(p, &bootentry_providers, list) {
ret = p->fn(bootentries, name);
if (ret > 0)