summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/ide.h')
-rw-r--r--include/asm-i386/ide.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h
index 1947b62c0..886eebb91 100644
--- a/include/asm-i386/ide.h
+++ b/include/asm-i386/ide.h
@@ -16,7 +16,11 @@
#include <linux/config.h>
#ifndef MAX_HWIFS
+# ifdef CONFIG_BLK_DEV_IDEPCI
#define MAX_HWIFS 10
+# else
+#define MAX_HWIFS 6
+# endif
#endif
#define ide__sti() __sti()