Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101676
b: refs/heads/master
c: 995ada8
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Roese authored and Josh Boyer committed Jun 11, 2008
1 parent deae830 commit beeb10a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 156cea23acffaa270cf243a3a0f43e1e30682081
refs/heads/master: 995ada8d5e6b3d5a32ca3e544a564d0623c4f3fa
9 changes: 9 additions & 0 deletions trunk/arch/powerpc/sysdev/ppc4xx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,15 @@ static void __init ppc4xx_probe_pciex_bridge(struct device_node *np)
}
port = &ppc4xx_pciex_ports[portno];
port->index = portno;

/*
* Check if device is enabled
*/
if (!of_device_is_available(np)) {
printk(KERN_INFO "PCIE%d: Port disabled via device-tree\n", port->index);
return;
}

port->node = of_node_get(np);
pval = of_get_property(np, "sdr-base", NULL);
if (pval == NULL) {
Expand Down

0 comments on commit beeb10a

Please sign in to comment.