--- zzzz-none-000/linux-4.4.60/drivers/of/of_reserved_mem.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/drivers/of/of_reserved_mem.c 2019-07-03 09:21:34.000000000 +0000 @@ -280,6 +280,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;