powerpc/powernv: Add helper to get ibm,chip-id of a node
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jul 2013 03:03:10 +0000 (13:03 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:58:02 +0000 (14:58 +1000)
commitb37193b71846858d816e152d3a5db010d7b73f5e
tree9200250b777ee9f8a9133f15810a4a65e6abc877
parentcc0efb57ebf04e066a57aa975c8a38884e603123
powerpc/powernv: Add helper to get ibm,chip-id of a node

This includes walking the parent nodes if necessary.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/prom.h
arch/powerpc/kernel/prom.c