commit | b67e2272461487b31c9854d12c605cb495da0a67 | [log] [tgz] |
---|---|---|
author | Peng Fan <Peng.Fan@freescale.com> | Tue Jan 06 14:12:51 2015 +0800 |
committer | Tom Rini <trini@ti.com> | Thu Jan 08 11:00:45 2015 -0500 |
tree | 2332c2a56c6a61b2cb69b6522dfcfae7832fb711 | |
parent | d89b99d303e43bcc2484cbb0ed720ace3d2bb714 [diff] |
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>