Skip to contentSkip to conversation

ide: make 32-bit I/O support for IDE VLB available only when it makes sense

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 1 message Mar 30, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 ide: make 32-bit I/O support for IDE VLB available only when it makes sense

IDE VLB host drivers depend on ISA && (ALPHA || X86 || MIPS) so only then it makes sense to support "VLB sync" (controlled by SUPPORT_VLB_SYNC define).

---
 include/linux/ide.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/linux/ide.h +4 -3
Index: b/include/linux/ide.h
===================================================================
@@ -26,10 +26,11 @@
 #include <asm/semaphore.h>
 #include <asm/mutex.h>
 
-#if defined(CONFIG_CRIS) || defined(CONFIG_FRV)
-# define SUPPORT_VLB_SYNC 0
-#else
+#if defined(CONFIG_ISA) && \
+    (defined(CONFIG_ALPHA) || defined(CONFIG_X86) || defined(CONFIG_MIPS))
 # define SUPPORT_VLB_SYNC 1
+#else
+# define SUPPORT_VLB_SYNC 0
 #endif
 
 /*