diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2009-01-02 18:27:00 +0900 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-01-02 18:27:00 +0900 |
commit | 89ccc8e6dc81bc1d613454b9944c2f3324d43e2a (patch) | |
tree | aab4c63f6e29336ae423c905b55acf4329e6db15 /discover/kboot-parser.c | |
parent | ce5eab024583af5a4725503bad6ed2aee452b1aa (diff) | |
download | talos-petitboot-89ccc8e6dc81bc1d613454b9944c2f3324d43e2a.tar.gz talos-petitboot-89ccc8e6dc81bc1d613454b9944c2f3324d43e2a.zip |
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.c | 6 |
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); |