parsers: populate resolve_resource members
authorJeremy Kerr <jk@ozlabs.org>
Thu, 2 May 2013 02:23:09 +0000 (10:23 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 6 May 2013 01:02:12 +0000 (09:02 +0800)
We're only dealing with devpath resources at the moment.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2-parser.c
discover/yaboot-parser.c

index 05893292ea2b4cf93caa30f0a2d34e4bcb9bc605..97b96537482f7b1bc83f31855f052e4ea041138b 100644 (file)
@@ -192,10 +192,11 @@ static int grub2_parse(struct discover_context *dc, char *buf, int len)
 }
 
 static struct parser grub2_parser = {
 }
 
 static struct parser grub2_parser = {
-       .name           = "grub2",
-       .method         = CONF_METHOD_LOCAL_FILE,
-       .parse          = grub2_parse,
-       .filenames      = grub2_conf_files,
+       .name                   = "grub2",
+       .method                 = CONF_METHOD_LOCAL_FILE,
+       .parse                  = grub2_parse,
+       .filenames              = grub2_conf_files,
+       .resolve_resource       = resolve_devpath_resource,
 };
 
 register_parser(grub2_parser);
 };
 
 register_parser(grub2_parser);
index 816e0c4a91f941b542791bd31f74184dcdca5288..65252029952acfad51a4416567ed4698db621cc5 100644 (file)
@@ -314,10 +314,11 @@ static int yaboot_parse(struct discover_context *dc, char *buf, int len)
 }
 
 static struct parser yaboot_parser = {
 }
 
 static struct parser yaboot_parser = {
-       .name           = "yaboot",
-       .method         = CONF_METHOD_LOCAL_FILE,
-       .parse          = yaboot_parse,
-       .filenames      = yaboot_conf_files,
+       .name                   = "yaboot",
+       .method                 = CONF_METHOD_LOCAL_FILE,
+       .parse                  = yaboot_parse,
+       .filenames              = yaboot_conf_files,
+       .resolve_resource       = resolve_devpath_resource,
 };
 
 register_parser(yaboot_parser);
 };
 
 register_parser(yaboot_parser);