.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/firmware/memmap.c |
---|
3 | 4 | * Copyright (C) 2008 SUSE LINUX Products GmbH |
---|
4 | 5 | * by Bernhard Walle <bernhard.walle@gmx.de> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License v2.0 as published by |
---|
8 | | - * the Free Software Foundation |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | | - * |
---|
15 | 6 | */ |
---|
16 | 7 | |
---|
17 | 8 | #include <linux/string.h> |
---|
.. | .. |
---|
19 | 10 | #include <linux/kernel.h> |
---|
20 | 11 | #include <linux/module.h> |
---|
21 | 12 | #include <linux/types.h> |
---|
22 | | -#include <linux/bootmem.h> |
---|
| 13 | +#include <linux/memblock.h> |
---|
23 | 14 | #include <linux/slab.h> |
---|
24 | 15 | #include <linux/mm.h> |
---|
25 | 16 | |
---|
.. | .. |
---|
333 | 324 | { |
---|
334 | 325 | struct firmware_map_entry *entry; |
---|
335 | 326 | |
---|
336 | | - entry = memblock_virt_alloc(sizeof(struct firmware_map_entry), 0); |
---|
| 327 | + entry = memblock_alloc(sizeof(struct firmware_map_entry), |
---|
| 328 | + SMP_CACHE_BYTES); |
---|
337 | 329 | if (WARN_ON(!entry)) |
---|
338 | 330 | return -ENOMEM; |
---|
339 | 331 | |
---|