[POWERPC] cell: safer of_has_vicinity routine
authorAndre Detsch <adetsch@br.ibm.com>
Wed, 5 Dec 2007 02:49:31 +0000 (13:49 +1100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Dec 2007 00:00:03 +0000 (01:00 +0100)
commita0a7ae8939e3fdecf5478ddba54562e23de7ca1d
treeb8145e435a6f982c5c64bbec3728314a4b83a9d0
parent3ce2f62b05eca594356fc477229e233e2678b509
[POWERPC] cell: safer of_has_vicinity routine

This patch changes the way we check for the existence of
vicinity property in spe device nodes.

The new implementation does not depend on having an initialized
cbe_spu_info[0].spus, and checks for presence of vicinity in all
nodes, not only in the first one.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/platforms/cell/spu_manage.c