--- zzzz-none-000/linux-5.4.213/drivers/of/of_reserved_mem.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/of/of_reserved_mem.c 2024-08-14 09:02:08.000000000 +0000 @@ -281,6 +281,15 @@ } } +struct reserved_mem *fdt_get_reserved_mem_resource(const char* name) { + int i; + pr_info("[%s] mem_count = %d; search name = \"%s\"\n", __func__, reserved_mem_count, name); + for (i = 0; i < reserved_mem_count; i++) + if (!strncmp(reserved_mem[i].name, name, strlen(name))) return &reserved_mem[i]; + return NULL; +} + + static inline struct reserved_mem *__find_rmem(struct device_node *node) { unsigned int i;