/* Returns 0 on success, or -ENOMEM if no memory could be allocated.  */
int __init firmware_map_add_early(u64 start, u64 end, const char *type)
/* Returns 0 on success, or -ENOMEM if no memory could be allocated.  */
int __init firmware_map_add_early(u64 start, u64 end, const char *type)
{
	struct firmware_map_entry *entry;
	entry = alloc_bootmem(sizeof(struct firmware_map_entry));
	if (WARN_ON(!entry))
		return -ENOMEM;
	return firmware_map_add_entry(start, end, type, entry);
}