summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/gateworks/venice/spl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index da36f227bcc..98931c04754 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -171,11 +171,12 @@ static int power_init_board(void)
}
else if ((!strncmp(model, "GW7901", 6)) ||
- (!strncmp(model, "GW7902", 6))) {
- if (!strncmp(model, "GW7901", 6))
- ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
- else
+ (!strncmp(model, "GW7902", 6)) ||
+ (!strncmp(model, "GW7903", 6))) {
+ if (!strncmp(model, "GW7902", 6))
ret = uclass_get_device_by_seq(UCLASS_I2C, 0, &bus);
+ else
+ ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
if (ret) {
printf("PMIC : failed I2C2 probe: %d\n", ret);
return ret;