From e35e69537722bad0720a6831adc96b00d29e4a8b Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 18 Nov 2016 08:58:25 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/17474 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel --- src/soc/intel/common/lpss_i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soc/intel/common/lpss_i2c.c b/src/soc/intel/common/lpss_i2c.c index 025ee25f57..c391ffe4a9 100644 --- a/src/soc/intel/common/lpss_i2c.c +++ b/src/soc/intel/common/lpss_i2c.c @@ -532,8 +532,7 @@ static int lpss_i2c_gen_config_rise_fall_time(struct lpss_i2c_regs *regs, soc = get_soc_descriptor(ic_clk); if (bus == NULL) { - printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n", - config->speed); + printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n", speed); return -1; } -- cgit v1.2.3