diff options
| -rw-r--r-- | arch/powerpc/platforms/pseries/eeh_driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_driver.c b/arch/powerpc/platforms/pseries/eeh_driver.c index 68ea5eee39a8..8c1ca477c52c 100644 --- a/arch/powerpc/platforms/pseries/eeh_driver.c +++ b/arch/powerpc/platforms/pseries/eeh_driver.c | |||
| @@ -42,17 +42,20 @@ static inline const char * pcid_name (struct pci_dev *pdev) | |||
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | #ifdef DEBUG | 44 | #ifdef DEBUG |
| 45 | static void print_device_node_tree (struct pci_dn *pdn, int dent) | 45 | static void print_device_node_tree(struct pci_dn *pdn, int dent) |
| 46 | { | 46 | { |
| 47 | int i; | 47 | int i; |
| 48 | if (!pdn) return; | 48 | struct device_node *pc; |
| 49 | for (i=0;i<dent; i++) | 49 | |
| 50 | if (!pdn) | ||
| 51 | return; | ||
| 52 | for (i = 0; i < dent; i++) | ||
| 50 | printk(" "); | 53 | printk(" "); |
| 51 | printk("dn=%s mode=%x \tcfg_addr=%x pe_addr=%x \tfull=%s\n", | 54 | printk("dn=%s mode=%x \tcfg_addr=%x pe_addr=%x \tfull=%s\n", |
| 52 | pdn->node->name, pdn->eeh_mode, pdn->eeh_config_addr, | 55 | pdn->node->name, pdn->eeh_mode, pdn->eeh_config_addr, |
| 53 | pdn->eeh_pe_config_addr, pdn->node->full_name); | 56 | pdn->eeh_pe_config_addr, pdn->node->full_name); |
| 54 | dent += 3; | 57 | dent += 3; |
| 55 | struct device_node *pc = pdn->node->child; | 58 | pc = pdn->node->child; |
| 56 | while (pc) { | 59 | while (pc) { |
| 57 | print_device_node_tree(PCI_DN(pc), dent); | 60 | print_device_node_tree(PCI_DN(pc), dent); |
| 58 | pc = pc->sibling; | 61 | pc = pc->sibling; |
