diff --git a/include/linux/ide.h b/include/linux/ide.h
index a3b69c10d667c98c5631308456673374491aaec5..bc26b2f273591cc83d7ec373ad9e9d22c633357c 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -26,7 +26,7 @@
 #include <asm/semaphore.h>
 #include <asm/mutex.h>
 
-#if defined(CRIS) || defined(FRV)
+#if defined(CONFIG_CRIS) || defined(CONFIG_FRV)
 # define SUPPORT_VLB_SYNC 0
 #else
 # define SUPPORT_VLB_SYNC 1