diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-20 12:26:19 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-24 07:58:33 +0100 |
commit | 09b884bdec3dd4cb4bac8a6f6e777eedf33c82f3 (patch) | |
tree | 7bd3f59ef16e3ed79c80be181515285d3b5b3d60 /include | |
parent | 6357b7fdad6b8954e743fc26dd6cc14056d751a7 (diff) | |
download | barebox-09b884bdec3dd4cb4bac8a6f6e777eedf33c82f3.tar.gz barebox-09b884bdec3dd4cb4bac8a6f6e777eedf33c82f3.tar.xz |
blspec: honor default/once entries again
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/blspec.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/blspec.h b/include/blspec.h index 66d2e8485d..afac5ed7ba 100644 --- a/include/blspec.h +++ b/include/blspec.h @@ -35,7 +35,6 @@ int blspec_boot_devicename(const char *devname, int verbose, int dryrun); int blspec_scan_devices(struct blspec *blspec); -struct blspec_entry *blspec_entry_default(struct blspec *l); int blspec_scan_devicename(struct blspec *blspec, const char *devname); int blspec_scan_directory(struct blspec *blspec, const char *root); @@ -91,4 +90,13 @@ static inline void blspec_free(struct blspec *blspec) free(blspec); } +#ifdef CONFIG_BLSPEC +struct blspec_entry *blspec_entry_default(struct blspec *l); +#else +static inline struct blspec_entry *blspec_entry_default(struct blspec *l) +{ + return NULL; +} +#endif + #endif /* __LOADER_H__ */ |