From f9d7bd3e2dbb59bc65f6a559d781a3ce321a0f04 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Sat, 12 Dec 2015 22:56:15 +0100 Subject: [PATCH] omap5_uevm: don't call tca642x_set_inital_state() if CONFIG_TCA642X is not configured Signed-off-by: H. Nikolaus Schaller --- board/ti/omap5_uevm/evm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c index 50da4109bb8..1c131249592 100644 --- a/board/ti/omap5_uevm/evm.c +++ b/board/ti/omap5_uevm/evm.c @@ -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; } -- 2.39.5