]> git.baikalelectronics.ru Git - kernel.git/commit
of/numa: fix a memory@ node can only contains one memory block
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 1 Sep 2016 06:54:53 +0000 (14:54 +0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 13:59:08 +0000 (14:59 +0100)
commit5584483ef09326ddb1515291287a1e1cd8e38acb
tree901440b13550ffccc512aae2b50d517d6a67a48d
parent6de91ce131939cd3f8d922ee03cc152296aa0756
of/numa: fix a memory@ node can only contains one memory block

For a normal memory@ devicetree node, its reg property can contains more
memory blocks.

Because we don't known how many memory blocks maybe contained, so we try
from index=0, increase 1 until error returned(the end).

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/of/of_numa.c