| 47 | } |
| 48 | |
| 49 | static struct device_tree_property *alloc_prop(void) |
| 50 | { |
| 51 | #ifndef __COREBOOT__ |
| 52 | static struct device_tree_property scratch[LP_ALLOC_PROP_SCRATCH_COUNT]; |
| 53 | static int counter = 0; |
| 54 | |
| 55 | if (counter < ARRAY_SIZE(scratch)) |
| 56 | return &scratch[counter++]; |
| 57 | #endif |
| 58 | return xzalloc(sizeof(struct device_tree_property)); |
| 59 | } |
| 60 | |
| 61 | |
| 62 | /* |
no outgoing calls
no test coverage detected