Updated to 2.6.32.27
/arch/powerpc/include/asm/ppc-pci.h
blob:2828f9d0f66ddb1d66be47662c999282fc25fdaf -> blob:fa6648aaf070524d1c2de8253b8ea35da16de3ff
--- arch/powerpc/include/asm/ppc-pci.h
+++ arch/powerpc/include/asm/ppc-pci.h
@@ -137,6 +137,11 @@ struct device_node * find_device_pe(stru
void eeh_sysfs_add_device(struct pci_dev *pdev);
void eeh_sysfs_remove_device(struct pci_dev *pdev);
+static inline const char *eeh_pci_name(struct pci_dev *pdev)
+{
+ return pdev ? pci_name(pdev) : "<null>";
+}
+
#endif /* CONFIG_EEH */
#else /* CONFIG_PCI */