[PATCH] powerpc: Fix machine detection in prom_init.c
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 7 Apr 2006 03:56:21 +0000 (13:56 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Apr 2006 16:32:00 +0000 (09:32 -0700)
commit6f806ceed53776ae5e04c8b334dc9daa0932ad1e
tree9097907bc604fa69d709a9de12b467eebac0c02d
parent132058f78a1bc8cce2c5a40245365938d51832fe
[PATCH] powerpc: Fix machine detection in prom_init.c

In e8222502ee6157e2713da9e0792c21f4ad458d50 the detection of machine types
in prom_init broke for some machines. We should be checking /device_type
instead of /model. This should make Power3 and Power4 boot again. Haven't
been able to test this.  We also need to relocate before comparing.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c