powerpc/powernv: Free PHB instance upon error
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 31 Jul 2013 08:47:00 +0000 (16:47 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:57:21 +0000 (14:57 +1000)
commit58d714ec7a73bfdf0780862d7e79302e084d49ca
tree524bbf5c473a734941327ed703b225eeb65331f8
parent408a7e08b2112faf687dd629212e42998a7dbe48
powerpc/powernv: Free PHB instance upon error

We don't free PHB instance (struct pnv_phb) on error to creating
the associated PCI controler (struct pci_controller). The patch
fixes that. Also, the output messages have been cleaned for a bit
so that they looks unified for IODA_1/2 cases.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c