soc/intel/common/lpss_i2c: correct bus speed error
The wrong value was used for reporting an error when a requested bus speed was made that isn't supported. Use the requested value. Change-Id: I6c92ede3d95590d95a42b40422bab88ea9ae72a1 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/17474 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
bff8c5ec19
commit
e35e695377
1 changed files with 1 additions and 2 deletions
|
@ -532,8 +532,7 @@ static int lpss_i2c_gen_config_rise_fall_time(struct lpss_i2c_regs *regs,
|
||||||
soc = get_soc_descriptor(ic_clk);
|
soc = get_soc_descriptor(ic_clk);
|
||||||
|
|
||||||
if (bus == NULL) {
|
if (bus == NULL) {
|
||||||
printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n",
|
printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n", speed);
|
||||||
config->speed);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue