Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: reserved-memory: ignore disabled memory-region nodes

Ignore disabled nodes in the memory-region
nodes list and continue to initialize the rest
of enabled nodes.

Check if the "reserved-memory" node is available
and if it's not available, return 0 to ignore the
"reserved-memory" node and continue parsing with
next node in memory-region nodes list.

Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krishna Reddy and committed by
Rob Herring
d698a388 2496f177

+3
+3
drivers/of/of_reserved_mem.c
··· 324 324 if (!target) 325 325 return -ENODEV; 326 326 327 + if (!of_device_is_available(target)) 328 + return 0; 329 + 327 330 rmem = __find_rmem(target); 328 331 of_node_put(target); 329 332