• Benjamin Herrenschmidt's avatar
    [PATCH] ppc64: Fix a device-tree bug on Apple's · 44e4665c
    Benjamin Herrenschmidt authored
    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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    44e4665c
prom_init.c 54 KB