Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114582
b: refs/heads/master
c: 5a013fc
h: refs/heads/master
v: v3
  • Loading branch information
Matthias Fuchs authored and Josh Boyer committed Oct 2, 2008
1 parent 090411f commit 1213d5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fbcc4bacee30cad4e4a13d05492a9ed0c9c3e8c7
refs/heads/master: 5a013fc7bb48acefe94011f4b83fef95b381f875
9 changes: 8 additions & 1 deletion trunk/arch/powerpc/sysdev/ppc4xx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,16 @@ static void __init ppc4xx_probe_pci_bridge(struct device_node *np)
const int *bus_range;
int primary = 0;

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

/* Fetch config space registers address */
if (of_address_to_resource(np, 0, &rsrc_cfg)) {
printk(KERN_ERR "%s:Can't get PCI config register base !",
printk(KERN_ERR "%s: Can't get PCI config register base !",
np->full_name);
return;
}
Expand Down

0 comments on commit 1213d5e

Please sign in to comment.