]> git.ozlabs.org Git - petitboot/commit
discover: Always associate resources with a boot option
authorJeremy Kerr <jk@ozlabs.org>
Mon, 13 May 2013 01:16:00 +0000 (09:16 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 15 May 2013 06:38:04 +0000 (14:38 +0800)
commit1b50985db4e85030de3567792aedc13aa26e0fea
tree48cca47b21140712ca20b5eaff2c4b041fb6ac48
parent07bf13167aacf49a694aea3341caa15379916bec
discover: Always associate resources with a boot option

We should always be tallocing resources to a boot option context;
anything else (for example, the discover context) may have a different
lifetime.

In order to enforce this, we change the void *ctx argument to the
context_create functions to a struct discover_boot_option.

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