From: Mike Frysinger Date: Fri, 23 Jan 2009 13:00:14 -0500 Subject: [U-Boot] [PATCH 13/40] Blackfin: do not init i2c in Blackfin board init In-Reply-To: <1232733641-29276-1-git-send-email-vapier@gentoo.org> References: <1232733641-29276-1-git-send-email-vapier@gentoo.org> Message-ID: <1232733641-29276-14-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The common code takes care of calling i2c_init() when needed, so no point in us doing it as well. Signed-off-by: Mike Frysinger --- lib_blackfin/board.c | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 05e66e3..d16c819 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -329,16 +328,6 @@ void board_init_f(ulong bootflag) board_init_r((gd_t *) gd, 0x20000010); } -#if defined(CONFIG_SOFT_I2C) || defined(CONFIG_HARD_I2C) -static int init_func_i2c(void) -{ - puts("I2C: "); - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); - puts("ready\n"); - return (0); -} -#endif - void board_init_r(gd_t * id, ulong dest_addr) { extern void malloc_bin_reloc(void); @@ -440,10 +429,6 @@ void board_init_r(gd_t * id, ulong dest_addr) bd->bi_enetaddr[3], bd->bi_enetaddr[4], bd->bi_enetaddr[5]); #endif -#if defined(CONFIG_SOFT_I2C) || defined(CONFIG_HARD_I2C) - init_func_i2c(); -#endif - display_global_data(); #if defined(CONFIG_POST) -- 1.6.1