powerpc/powernv: Introduce pnv_pci_get_slot_id()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 20 May 2016 06:41:40 +0000 (16:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jun 2016 05:30:58 +0000 (15:30 +1000)
commit7e19bf32c8ac977e7702a67d7392a3e0a9644bc8
tree13f003cef438104190d28896c8eee2a0619578fe
parent9c0e1ecbe19540c23f941c1fdb59e79b16c17d55
powerpc/powernv: Introduce pnv_pci_get_slot_id()

This introduces pnv_pci_get_slot_id() to get the hotpluggable PCI
slot ID from the corresponding device node. It will be used by
hotplug driver.

Requested-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pnv-pci.h
arch/powerpc/platforms/powernv/pci.c