[SPARC]: Simplify and correct __cpu_find_by()
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 18 Jul 2006 04:49:58 +0000 (21:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 21 Jul 2006 21:18:15 +0000 (14:18 -0700)
commitc2d3bffebc2cb651ed33abae2434f85cd503a498
tree2e9d456da9b1dc7437edca0dcb6b7069f24ed5ae
parent2f72ba43581890d003427053ebe4dfaa14e5f4b0
[SPARC]: Simplify and correct __cpu_find_by()

By using for_each_node_by_type().

Also, correct a spurioud test in check_cpu_node() on sparc64.
It is only called with nodes that have device_type "cpu".

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/devices.c
arch/sparc64/kernel/devices.c