summaryrefslogtreecommitdiffstats
path: root/discover/kboot-parser.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2009-01-02 18:27:00 +0900
committerJeremy Kerr <jk@ozlabs.org>2009-01-02 18:27:00 +0900
commit89ccc8e6dc81bc1d613454b9944c2f3324d43e2a (patch)
treeaab4c63f6e29336ae423c905b55acf4329e6db15 /discover/kboot-parser.c
parentce5eab024583af5a4725503bad6ed2aee452b1aa (diff)
downloadtalos-petitboot-89ccc8e6dc81bc1d613454b9944c2f3324d43e2a.zip
talos-petitboot-89ccc8e6dc81bc1d613454b9944c2f3324d43e2a.tar.gz
Use separate section for parsers array
Instead of hardcoding the array of parsers, use the linker to do the work for us. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r--discover/kboot-parser.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index f227ee3..f8cd61d 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -290,8 +290,4 @@ out:
return rc;
}
-struct parser kboot_parser = {
- .name = "kboot.conf parser",
- .priority = 98,
- .parse = parse
-};
+define_parser(kboot, 98, parse);
OpenPOWER on IntegriCloud