]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabled
authorAdam Ford <aford173@gmail.com>
Tue, 21 Aug 2018 01:34:00 +0000 (20:34 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:39:02 +0000 (21:39 -0400)
commitd12d638c04b51b1b82026a446d0188ccc4e6b97f
tree1cc8aa760aaab561354184f279bd525db137cae6
parent9c82a6753e5a2416491d7de7095260753163b8c5
ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabled

boot-common.c checks to see if I2C is enabled in SPL, but
it doens't check for DM_I2C before initializing it.  This
will now only initialize the I2C is the DM_I2C is not enabled
to avoid initializing it more than once.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-omap2/boot-common.c