From 89ccc8e6dc81bc1d613454b9944c2f3324d43e2a Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 2 Jan 2009 18:27:00 +0900 Subject: 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 --- discover/kboot-parser.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'discover/kboot-parser.c') 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); -- cgit v1.2.1