--- zzzz-none-000/linux-4.4.60/include/linux/of_reserved_mem.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-1750e-727/linux-4.4.60/include/linux/of_reserved_mem.h 2021-02-04 17:41:59.000000000 +0000 @@ -34,6 +34,8 @@ void fdt_init_reserved_mem(void); void fdt_reserved_mem_save_node(unsigned long node, const char *uname, phys_addr_t base, phys_addr_t size); +struct reserved_mem *fdt_get_reserved_mem_resource(const char* name); +struct reserved_mem *of_reserved_mem_lookup(struct device_node *np); #else static inline int of_reserved_mem_device_init(struct device *dev) { @@ -44,6 +46,11 @@ static inline void fdt_init_reserved_mem(void) { } static inline void fdt_reserved_mem_save_node(unsigned long node, const char *uname, phys_addr_t base, phys_addr_t size) { } +static inline struct reserved_mem *fdt_get_reserved_mem_resource(const char* name) { return NULL; } +static inline struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) +{ + return NULL; +} #endif #endif /* __OF_RESERVED_MEM_H */