omap5_uevm: don't call tca642x_set_inital_state() if CONFIG_TCA642X is not configured
authorH. Nikolaus Schaller <hns@goldelico.com>
Sat, 12 Dec 2015 21:56:15 +0000 (22:56 +0100)
committernotaz <notasas@gmail.com>
Sun, 14 Aug 2016 13:07:57 +0000 (16:07 +0300)
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
board/ti/omap5_uevm/evm.c

index 50da410..1c13124 100644 (file)
@@ -140,9 +140,9 @@ int board_init(void)
        gpmc_init();
        gd->bd->bi_arch_number = MACH_TYPE_OMAP5_SEVM;
        gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
-
+#if defined(CONFIG_TCA642X)
        tca642x_set_inital_state(CONFIG_SYS_I2C_TCA642X_ADDR, tca642x_init);
-
+#endif
        return 0;
 }