blspec: remove unused blspec_boot_devicename
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
2ccd60013d
commit
7c76559023
|
@ -758,33 +758,3 @@ struct blspec_entry *blspec_entry_default(struct blspec *l)
|
||||||
return entry_default;
|
return entry_default;
|
||||||
return entry_first;
|
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;
|
|
||||||
}
|
|
||||||
|
|
|
@ -31,8 +31,6 @@ int blspec_entry_save(struct blspec_entry *entry, const char *path);
|
||||||
|
|
||||||
int blspec_boot(struct blspec_entry *entry, int verbose, int dryrun);
|
int blspec_boot(struct blspec_entry *entry, int verbose, int dryrun);
|
||||||
|
|
||||||
int blspec_boot_devicename(const char *devname, int verbose, int dryrun);
|
|
||||||
|
|
||||||
int blspec_scan_devices(struct blspec *blspec);
|
int blspec_scan_devices(struct blspec *blspec);
|
||||||
|
|
||||||
int blspec_scan_device(struct blspec *blspec, struct device_d *dev);
|
int blspec_scan_device(struct blspec *blspec, struct device_d *dev);
|
||||||
|
|
Loading…
Reference in New Issue