]> 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)
commit6cfdc10273a68cdb7dfd0ad7038956ba069d91b8
tree901440b13550ffccc512aae2b50d517d6a67a48d
parent1fd08071da8f88889c5ae350112a3ebec7ed4013
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