Fix some wait_for_valid functions return value from 1 to -1.
codec_init expects wait_for_valid returns -1 for timeout, not 1. Change-Id: I0f2a3ebb1934d0adaf13765434526bbc9efca9a3 Signed-off-by: Andrew Wu <arw@dmp.com.tw> Reviewed-on: http://review.coreboot.org/3843 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martin.roth@se-eng.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
3be80cce29
commit
9361daf7fd
|
@ -208,7 +208,7 @@ static int wait_for_valid(u32 base)
|
||||||
udelay(1);
|
udelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void codec_init(u32 base, int addr)
|
static void codec_init(u32 base, int addr)
|
||||||
|
|
|
@ -130,7 +130,7 @@ static int wait_for_valid(u32 base)
|
||||||
udelay(1);
|
udelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void codec_init(u32 base, int addr)
|
static void codec_init(u32 base, int addr)
|
||||||
|
|
|
@ -132,7 +132,7 @@ static int wait_for_valid(u32 base)
|
||||||
udelay(1);
|
udelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void codec_init(u32 base, int addr)
|
static void codec_init(u32 base, int addr)
|
||||||
|
|
|
@ -187,7 +187,7 @@ static int wait_for_valid(u32 base)
|
||||||
udelay(1);
|
udelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void codec_init(struct device *dev, u32 base, int addr)
|
static void codec_init(struct device *dev, u32 base, int addr)
|
||||||
|
|
Loading…
Reference in New Issue