]> git.baikalelectronics.ru Git - 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)
commit4c28cf6a259a8bbc0b92c6291806aff84288dfb3
treebc43d50e7a8ab630302a3f3eb4dc4976b18132ba
parente71f7bb4167fa6b731776a2c79cb2067f5b78c4f
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