arm920t/interrupts: Move conditional compilation to Makefile
[oweals/u-boot.git] / post / drivers / i2c.c
index 1b2e64471b30145607aed0594b8f5c1fd30f7e7e..b152deaf6abf52c91d164b49b0349b1b7795b004 100644 (file)
@@ -23,8 +23,6 @@
 
 #include <common.h>
 
-#ifdef CONFIG_POST
-
 /*
  * I2C test
  *
@@ -41,7 +39,7 @@
 #include <post.h>
 #include <i2c.h>
 
-#if CONFIG_POST & CFG_POST_I2C
+#if CONFIG_POST & CONFIG_SYS_POST_I2C
 
 int i2c_post_test (int flags)
 {
@@ -90,5 +88,4 @@ int i2c_post_test (int flags)
 #endif
 }
 
-#endif /* CONFIG_POST & CFG_POST_I2C */
-#endif /* CONFIG_POST */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_I2C */