]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ppc64: Fix a device-tree bug on Apple's
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Jun 2005 04:54:25 +0000 (14:54 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 1 Jun 2005 14:54:13 +0000 (07:54 -0700)
commit44e4665cc9d856d15f04a012c78e4ab48f71290b
tree70d440628c5a426f6de14b65a230e076584fe7fe
parent21e3024cbddb712f6a078bf4132d7682d3c4e35e
[PATCH] ppc64: Fix a device-tree bug on Apple's

Apple's Open Firmware has a funny bug when creating the /cpus nodes
where it leaves a dangling '\0' character in the CPU name which ends up
appearing in the full path of the node. This is bogus and
confuses /proc/device-tree badly.

This patch strips those bogus zero's from the node full path when
reading the device-tree from Open Firmware. The "name" property is not
modified and still contains the spurrious 0 (it basically contains 0
tailing 0 instead of one) but that shouldn't be a problem.

An equivalent patch for ppc32 will follow shortly

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c