summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/mca-legacy.h2
-rw-r--r--include/linux/mca.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/mca-legacy.h b/include/linux/mca-legacy.h
index e250420ca9c7..ae5d7bda2773 100644
--- a/include/linux/mca-legacy.h
+++ b/include/linux/mca-legacy.h
@@ -7,6 +7,8 @@
#ifndef _LINUX_MCA_LEGACY_H
#define _LINUX_MCA_LEGACY_H
+#include <linux/mca.h>
+
#warning "MCA legacy - please move your driver to the new sysfs api"
/* MCA_NOTFOUND is an error condition. The other two indicate
diff --git a/include/linux/mca.h b/include/linux/mca.h
index 88e99ac603ea..b1289a792d54 100644
--- a/include/linux/mca.h
+++ b/include/linux/mca.h
@@ -136,10 +136,6 @@ extern void mca_unregister_driver(struct mca_driver *drv);
/* WARNING: only called by the boot time device setup */
extern int mca_register_device(int bus, struct mca_device *mca_dev);
-#ifdef CONFIG_MCA_LEGACY
-#include <linux/mca-legacy.h>
-#endif
-
#ifdef CONFIG_MCA_PROC_FS
extern void mca_do_proc_init(void);
extern void mca_set_adapter_procfn(int slot, MCA_ProcFn, void* dev);