diff options
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/ppc4xx_pci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index b4a54c52e880..76886cf0e6dc 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch/powerpc/sysdev/ppc4xx_pci.c | |||
@@ -1634,6 +1634,15 @@ static void __init ppc4xx_probe_pciex_bridge(struct device_node *np) | |||
1634 | } | 1634 | } |
1635 | port = &ppc4xx_pciex_ports[portno]; | 1635 | port = &ppc4xx_pciex_ports[portno]; |
1636 | port->index = portno; | 1636 | port->index = portno; |
1637 | |||
1638 | /* | ||
1639 | * Check if device is enabled | ||
1640 | */ | ||
1641 | if (!of_device_is_available(np)) { | ||
1642 | printk(KERN_INFO "PCIE%d: Port disabled via device-tree\n", port->index); | ||
1643 | return; | ||
1644 | } | ||
1645 | |||
1637 | port->node = of_node_get(np); | 1646 | port->node = of_node_get(np); |
1638 | pval = of_get_property(np, "sdr-base", NULL); | 1647 | pval = of_get_property(np, "sdr-base", NULL); |
1639 | if (pval == NULL) { | 1648 | if (pval == NULL) { |