powerpc/pci: Add calls to set_pcie_port_type() and set_pcie_hotplug_bridge()
We are missing these when building the pci_dev from scratch off the Open Firmware device-tree Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
+2
-2
@@ -681,7 +681,7 @@ static void pci_read_irq(struct pci_dev *dev)
|
||||
dev->irq = irq;
|
||||
}
|
||||
|
||||
static void set_pcie_port_type(struct pci_dev *pdev)
|
||||
void set_pcie_port_type(struct pci_dev *pdev)
|
||||
{
|
||||
int pos;
|
||||
u16 reg16;
|
||||
@@ -695,7 +695,7 @@ static void set_pcie_port_type(struct pci_dev *pdev)
|
||||
pdev->pcie_type = (reg16 & PCI_EXP_FLAGS_TYPE) >> 4;
|
||||
}
|
||||
|
||||
static void set_pcie_hotplug_bridge(struct pci_dev *pdev)
|
||||
void set_pcie_hotplug_bridge(struct pci_dev *pdev)
|
||||
{
|
||||
int pos;
|
||||
u16 reg16;
|
||||
|
||||
Reference in New Issue
Block a user