diff options
-rw-r--r-- | drivers/firmware/memmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c index e2e04b007e15..17cf96c45f2b 100644 --- a/drivers/firmware/memmap.c +++ b/drivers/firmware/memmap.c | |||
@@ -324,7 +324,7 @@ int __init firmware_map_add_early(u64 start, u64 end, const char *type) | |||
324 | { | 324 | { |
325 | struct firmware_map_entry *entry; | 325 | struct firmware_map_entry *entry; |
326 | 326 | ||
327 | entry = alloc_bootmem(sizeof(struct firmware_map_entry)); | 327 | entry = memblock_virt_alloc(sizeof(struct firmware_map_entry), 0); |
328 | if (WARN_ON(!entry)) | 328 | if (WARN_ON(!entry)) |
329 | return -ENOMEM; | 329 | return -ENOMEM; |
330 | 330 | ||