]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6eef54c147d8e2c2ef5543878e32dfeb8163e29
tree5876087fd0d2b98a351369a475099cefdc0287f5
parent19eae4f3437dd314ae9efdd3417b07b456b89c42
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