From: Steve Rae Date: Mon, 26 May 2014 19:33:29 +0000 (-0700) Subject: i2c: kona: Resolve Kona I2C driver issue X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6736ec15c518d013263fa97fc48ca22a50753792;p=u-boot.git i2c: kona: Resolve Kona I2C driver issue - "i2c mw" command hangs (with some compilers) Signed-off-by: Steve Rae --- diff --git a/drivers/i2c/kona_i2c.c b/drivers/i2c/kona_i2c.c index 0b1715abf0..5eab338cfc 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);