]> git.ozlabs.org Git - petitboot/commitdiff
Add n_options to struct device
authorGeoff Levand <geoff@infradead.org>
Fri, 28 Oct 2011 04:56:53 +0000 (21:56 -0700)
committerGeoff Levand <geoff@infradead.org>
Fri, 28 Oct 2011 04:56:53 +0000 (21:56 -0700)
lib/pb-protocol/pb-protocol.c
lib/pb-protocol/pb-protocol.h

index 6f278c89ac00e24185b8d8071152b3825076b413..a85b8a92bb227a4c836f6ac1ff35e35268482689 100644 (file)
@@ -311,6 +311,8 @@ struct device *pb_protocol_deserialise_device(void *ctx,
        n_options = __be32_to_cpu(*(uint32_t *)pos);
        pos += sizeof(uint32_t);
 
+       dev->n_options = n_options;
+
        list_init(&dev->boot_options);
 
        for (i = 0; i < n_options; i++) {
index 888e9b991fdacbbed2594e6de348f6b32e5d4605..b2d57d25b574fbe98de1c6d67a2751606602059e 100644 (file)
@@ -28,6 +28,7 @@ struct device {
 
        struct list boot_options;
 
+       int n_options;
        void *ui_info;
 };