OMAP3: SPL: do not call I2C init if no I2C is set.
authorStefano Babic <sbabic@denx.de>
Thu, 15 Mar 2012 04:01:42 +0000 (04:01 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 27 Mar 2012 20:05:29 +0000 (22:05 +0200)
commitda521387a4bde11f83b1f5b79bba0b0c30c7e5d9
tree820af3a093009114d148de6dab659f2710a85fb5
parentd460587a44de06e331041f55c30b7d1c432bff8b
OMAP3: SPL: do not call I2C init if no I2C is set.

Call i2c initialization in spl_board_init only if I2C
is configured for the board.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
CC: Wolfgang Denk <wd@denx.de>
CC: Simon Schwarz <simonschwarzcor@gmail.com>
arch/arm/cpu/armv7/omap3/board.c