summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-01-06 14:12:51 +0800
committerTom Rini <trini@ti.com>2015-01-08 11:00:45 -0500
commitc36ecf3abfbc20719bbc7229c9a112e2e137a400 (patch)
tree2332c2a56c6a61b2cb69b6522dfcfae7832fb711 /arch/arm
parent5ea019616483bb5103ee57e576e9bc559ea537b5 (diff)
downloadtalos-obmc-uboot-c36ecf3abfbc20719bbc7229c9a112e2e137a400.tar.gz
talos-obmc-uboot-c36ecf3abfbc20719bbc7229c9a112e2e137a400.zip
i2c:mxc fix array size of i2c_data
We should not hardcode array size of i2c_data to 3. To CONFIG_FSL_LSCH3, there are 4 i2c interface, but not 3. So the size of i2c_data array should be calculated using "ARRAY_SIZE(i2c_bases)". To avoid compile error, move i2c_bases before sram_data structure which contains i2c_data array. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud