]> Pileus Git - ~andy/linux/blobdiff - drivers/edac/edac_module.h
Merge branch 'for-3.8/drivers' of git://git.kernel.dk/linux-block
[~andy/linux] / drivers / edac / edac_module.h
index 62de640c8c8ad3da31b9c0e95565a468d678eb59..3d139c6e7fe325719b7ddaf4b38127f5895f8bb8 100644 (file)
@@ -56,6 +56,20 @@ extern void edac_mc_reset_delay_period(int value);
 
 extern void *edac_align_ptr(void **p, unsigned size, int n_elems);
 
+/*
+ * EDAC debugfs functions
+ */
+#ifdef CONFIG_EDAC_DEBUG
+int edac_debugfs_init(void);
+void edac_debugfs_exit(void);
+#else
+static inline int edac_debugfs_init(void)
+{
+       return -ENODEV;
+}
+static inline void edac_debugfs_exit(void) {}
+#endif
+
 /*
  * EDAC PCI functions
  */