Skip to contentSkip to conversation

MPC8572DS: Fix compile warnings

PATCH New Kumar Gala 2 participants 2 messages Oct 8, 2008 – Oct 13, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 MPC8572DS: Fix compile warnings

Commit 445a7b38308eb05b41de74165b20855db58c7ee5 introduced the following compile warnings:

cmd_i2c.c:112: warning: missing braces around initializer cmd_i2c.c:112: warning: (near initialization for 'i2c_no_probes[0]')

---
 include/configs/MPC8572DS.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/MPC8572DS.h +1 -1
index fbe7b61..4114a42 100644
@@ -299,7 +299,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CFG_I2C_SPEED		400000	/* I2C speed and slave address */
 #define CFG_I2C_EEPROM_ADDR	0x57
 #define CFG_I2C_SLAVE		0x7F
-#define CFG_I2C_NOPROBES	{0,0x29} /* Don't probe these addrs */
+#define CFG_I2C_NOPROBES	{{0,0x29}}/* Don't probe these addrs */
 #define CFG_I2C_OFFSET		0x3000
 #define CFG_I2C2_OFFSET		0x3100
 
Signature · 1 line
1.5.5.1
Applied
#1 lore raw

PATCH 1/1 MPC8572DS: Fix compile warnings

Quoted 7 lines · Kumar Gala

Commit 445a7b38308eb05b41de74165b20855db58c7ee5 introduced the following compile warnings:

cmd_i2c.c:112: warning: missing braces around initializer cmd_i2c.c:112: warning: (near initialization for 'i2c_no_probes[0]')

Applied, thanks