summaryrefslogtreecommitdiffstats
path: root/common/blspec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-07-20 09:08:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-22 13:23:38 +0200
commit7c765590230b18da96827d8a42d7940d12054284 (patch)
tree23424866b38d1799a55f941d3147f10523c6efd4 /common/blspec.c
parent2ccd60013dc2dabdb91cd2964cd9ce15eb949b1b (diff)
downloadbarebox-7c765590230b18da96827d8a42d7940d12054284.tar.gz
blspec: remove unused blspec_boot_devicename
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/blspec.c')
-rw-r--r--common/blspec.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/common/blspec.c b/common/blspec.c
index bf98e6b..2e9d87b 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -758,33 +758,3 @@ struct blspec_entry *blspec_entry_default(struct blspec *l)
return entry_default;
return entry_first;
}
-
-/*
- * blspec_boot_devicename - scan hardware device for blspec entries and
- * start the best one.
- */
-int blspec_boot_devicename(const char *devname, int verbose, int dryrun)
-{
- struct blspec *blspec;
- struct blspec_entry *e;
- int ret;
-
- blspec = blspec_alloc();
-
- ret = blspec_scan_devicename(blspec, devname);
- if (ret)
- return ret;
-
- e = blspec_entry_default(blspec);
- if (!e) {
- printf("No bootspec entry found on %s\n", devname);
- ret = -ENOENT;
- goto out;
- }
-
- ret = blspec_boot(e, verbose, dryrun);
-out:
- blspec_free(blspec);
-
- return ret;
-}