Drop I2C dependency on MMC
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 21 Nov 2011 18:02:53 +0000 (20:02 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 27 Dec 2011 11:21:17 +0000 (13:21 +0200)
I could not find evidence this is needed, and all boards build fine
without it.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
lib/board.c

index 0f6b960..a5b45b8 100644 (file)
@@ -47,9 +47,6 @@ int print_info(void)
        return 0;
 }
 
-/* !!! why is I2C dependent on MMC? */
-
-#ifdef CONFIG_MMC
 #ifdef CONFIG_DRIVER_OMAP34XX_I2C
 static int init_func_i2c (void)
 {
@@ -57,7 +54,6 @@ static int init_func_i2c (void)
        return 0;
 }
 #endif
-#endif
 
 typedef int (init_fnc_t) (void);
 
@@ -69,10 +65,8 @@ init_fnc_t *init_sequence[] = {
 #endif
        print_info,
        nand_init,              /* board specific nand init */
-#ifdef CONFIG_MMC
 #ifdef CONFIG_DRIVER_OMAP34XX_I2C
        init_func_i2c,
-#endif
 #endif
        NULL,
 };