diff options
author | Steve Rae <srae@broadcom.com> | 2014-05-26 12:33:29 -0700 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-06-12 11:42:50 +0200 |
commit | 6736ec15c518d013263fa97fc48ca22a50753792 (patch) | |
tree | c6876f5628919535f22414c63a8d77e06d8d3d67 /drivers/i2c | |
parent | e153b13c8e300236e6d505bea629cc81fd0988cb (diff) | |
download | u-boot-imx-6736ec15c518d013263fa97fc48ca22a50753792.zip u-boot-imx-6736ec15c518d013263fa97fc48ca22a50753792.tar.gz u-boot-imx-6736ec15c518d013263fa97fc48ca22a50753792.tar.bz2 |
i2c: kona: Resolve Kona I2C driver issue
- "i2c mw" command hangs (with some compilers)
Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/kona_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/kona_i2c.c b/drivers/i2c/kona_i2c.c index 0b1715a..5eab338 100644 --- a/drivers/i2c/kona_i2c.c +++ b/drivers/i2c/kona_i2c.c @@ -663,7 +663,7 @@ static int kona_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, static int kona_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, int alen, uchar *buffer, int len) { - struct i2c_msg msg[0]; + struct i2c_msg msg[1]; unsigned char msgbuf0[64]; unsigned int i; struct bcm_kona_i2c_dev *dev = kona_get_dev(adap); |