]> 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)
commit80ffce920db5a89d97b23a9c109fcb9c7e2f6ee8
treebc43d50e7a8ab630302a3f3eb4dc4976b18132ba
parent3bf5678aced2226adfdf8a870b820e3c76642405
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