]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
powerpc/powernv: Check primary PHB through ID
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 31 Jul 2013 08:47:02 +0000 (16:47 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:57:29 +0000 (14:57 +1000)
commit2f1ec02ea162ad18556c35a00c6220fc613f26ce
treebc43d50e7a8ab630302a3f3eb4dc4976b18132ba
parentf1b7cc3ec1ed9fe684872b248b166280650c4976
powerpc/powernv: Check primary PHB through ID

The index of one specific PCI controller (struct pci_controller::
global_number) can tell that it's primary one or not. So we needn't
additional variable for that and just remove it.

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