From: Guenter Roeck Date: Sun, 29 Apr 2018 15:43:57 +0000 (-0700) Subject: Read correct HTC register for Family 15h/Model 0x60 and 0x70 CPUs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=656c2657ef2926b78e9f02d83e2e463085f23a0f;p=groeck-k10temp 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 --- 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;