aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorRoy Franz <roy.franz@linaro.org>2013-09-22 18:45:35 -0400
committerMatt Fleming <matt.fleming@intel.com>2013-09-25 07:34:39 -0400
commit86cc653b1955c0a47681d16457f9ee9009f2561a (patch)
tree89e4adea35d6fcdd30c5ca2788cda71c96a40ec7 /drivers/firmware
parent5fef3870c572a30f9def07c4ded69dc37a9cf5d9 (diff)
efi: Rename __get_map() to efi_get_memory_map()
Rename function in preparation for making it more flexible and sharing it. Signed-off-by: Roy Franz <roy.franz@linaro.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/efi-stub-helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi-stub-helper.c
index 96665b730c51..561b9cf7745f 100644
--- a/drivers/firmware/efi/efi-stub-helper.c
+++ b/drivers/firmware/efi/efi-stub-helper.c
@@ -46,10 +46,10 @@ static void efi_printk(efi_system_table_t *sys_table_arg, char *str)
46} 46}
47 47
48 48
49static efi_status_t __get_map(efi_system_table_t *sys_table_arg, 49static efi_status_t efi_get_memory_map(efi_system_table_t *sys_table_arg,
50 efi_memory_desc_t **map, 50 efi_memory_desc_t **map,
51 unsigned long *map_size, 51 unsigned long *map_size,
52 unsigned long *desc_size) 52 unsigned long *desc_size)
53{ 53{
54 efi_memory_desc_t *m = NULL; 54 efi_memory_desc_t *m = NULL;
55 efi_status_t status; 55 efi_status_t status;
@@ -97,7 +97,7 @@ static efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg,
97 u64 max_addr = 0; 97 u64 max_addr = 0;
98 int i; 98 int i;
99 99
100 status = __get_map(sys_table_arg, &map, &map_size, &desc_size); 100 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
101 if (status != EFI_SUCCESS) 101 if (status != EFI_SUCCESS)
102 goto fail; 102 goto fail;
103 103
@@ -183,7 +183,7 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg,
183 unsigned long nr_pages; 183 unsigned long nr_pages;
184 int i; 184 int i;
185 185
186 status = __get_map(sys_table_arg, &map, &map_size, &desc_size); 186 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
187 if (status != EFI_SUCCESS) 187 if (status != EFI_SUCCESS)
188 goto fail; 188 goto fail;
189 189