diff options
Diffstat (limited to 'arch/powerpc/include/asm/ppc-pci.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-pci.h b/arch/powerpc/include/asm/ppc-pci.h index 2828f9d0f66d..42fdff0e4b32 100644 --- a/arch/powerpc/include/asm/ppc-pci.h +++ b/arch/powerpc/include/asm/ppc-pci.h | |||
@@ -137,6 +137,11 @@ struct device_node * find_device_pe(struct device_node *dn); | |||
137 | void eeh_sysfs_add_device(struct pci_dev *pdev); | 137 | void eeh_sysfs_add_device(struct pci_dev *pdev); |
138 | void eeh_sysfs_remove_device(struct pci_dev *pdev); | 138 | void eeh_sysfs_remove_device(struct pci_dev *pdev); |
139 | 139 | ||
140 | static inline const char *eeh_pci_name(struct pci_dev *pdev) | ||
141 | { | ||
142 | return pdev ? pci_name(pdev) : "<null>"; | ||
143 | } | ||
144 | |||
140 | #endif /* CONFIG_EEH */ | 145 | #endif /* CONFIG_EEH */ |
141 | 146 | ||
142 | #else /* CONFIG_PCI */ | 147 | #else /* CONFIG_PCI */ |