[PATCH] Small fix in eeh definitions when CONFIG_EEH not enabled
authorHaren Myneni <haren@us.ibm.com>
Wed, 28 Dec 2005 02:58:29 +0000 (18:58 -0800)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:35:06 +0000 (15:35 +1100)
Undefined symbols (eeh_add_device_tree_early and eeh_remove_bus_device)
when EEH is not enabled. This small patch will fix this.

Acked-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/eeh.h

index 14c9e8ab3e5f946af5381f36eb20fa8b67f153a2..4395b7bc1ed462b839d21881e7ef3f1382988bcf 100644 (file)
@@ -118,6 +118,9 @@ static inline void eeh_add_device_late(struct pci_dev *dev) { }
 
 static inline void eeh_remove_device(struct pci_dev *dev) { }
 
+static inline void eeh_add_device_tree_early(struct device_node *dn) { }
+
+static inline void eeh_remove_bus_device(struct pci_dev *dev) { }
 #define EEH_POSSIBLE_ERROR(val, type) (0)
 #define EEH_IO_ERROR_VALUE(size) (-1UL)
 #endif /* CONFIG_EEH */