of: reserved-memory: ignore disabled memory-region nodes
authorKrishna Reddy <vdumpa@nvidia.com>
Wed, 22 May 2019 10:47:11 +0000 (16:17 +0530)
committerRob Herring <robh@kernel.org>
Fri, 24 May 2019 20:53:23 +0000 (15:53 -0500)
commitd698a388146c5ba72e7cf7e79f13932f2046bf29
tree5876087fd0d2b98a351369a475099cefdc0287f5
parent2496f17772f757ba7a58c2abc1cdfdaf7cca29fb
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>
drivers/of/of_reserved_mem.c