From 656c2657ef2926b78e9f02d83e2e463085f23a0f Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sun, 29 Apr 2018 08:43:57 -0700 Subject: [PATCH] Read correct HTC register for Family 15h/Model 0x60 and 0x70 CPUs We previously added a new access function for those registers. Fix the code to use it. Signed-off-by: Guenter Roeck --- k10temp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/k10temp.c b/k10temp.c index 746ca82..ac30d0e 100644 --- a/k10temp.c +++ b/k10temp.c @@ -204,8 +204,7 @@ static ssize_t show_temp_crit(struct device *dev, u32 regval; int value; - pci_read_config_dword(data->pdev, - REG_HARDWARE_THERMAL_CONTROL, ®val); + data->read_htcreg(data->pdev, ®val); value = ((regval >> 16) & 0x7f) * 500 + 52000; if (show_hyst) value -= ((regval >> 24) & 0xf) * 500; -- 2.39.5