[U-Boot] [PATCH v1 4/6] board: dlvision-10g: Compile fix
dirk.eibach at gdsys.cc
dirk.eibach at gdsys.cc
Wed Oct 29 16:03:55 CET 2014
From: Dirk Eibach <dirk.eibach at gdsys.cc>
Signed-off-by: Dirk Eibach <dirk.eibach at gdsys.cc>
---
board/gdsys/common/osd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c
index 1c765e4..f26b336 100644
--- a/board/gdsys/common/osd.c
+++ b/board/gdsys/common/osd.c
@@ -345,8 +345,7 @@ int osd_probe(unsigned screen)
#ifdef CONFIG_SYS_SIL1178_I2C
i2c_set_bus_num(sil1178_i2c[screen]);
if (!i2c_probe(SIL1178_SLAVE_I2C_ADDRESS)) {
- value = i2c_reg_read(SIL1178_SLAVE_I2C_ADDRESS, 0x02);
- if (value == 0x06) {
+ if (i2c_reg_read(SIL1178_SLAVE_I2C_ADDRESS, 0x02) == 0x06) {
/*
* magic initialization sequence,
* adapted from datasheet
--
1.8.3
More information about the U-Boot
mailing list