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)
commit84b14256c18c967afd3cf4ee2df09535587154e0
tree901440b13550ffccc512aae2b50d517d6a67a48d
parent16a82f06c40301045e4c05297ea93b85595dbbc4
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