- correct address for "Reported Temperature Control Register" - correct Tctl_max for family 0x11 Signed-off-by: Andreas Herrmann <andreas.herrmann3 at amd.com> --- drivers/hwmon/k8temp.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index a949a86..fa30f8b 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c @@ -37,7 +37,7 @@ #define FAM_10_TEMP_FROM_REG(val) (((val) >> 21) * 125) #define FAM_F_REG_TEMP 0xe4 -#define FAM_10_REG_TEMP 0xa5 +#define FAM_10_REG_TEMP 0xa4 #define REG_CPUID 0xfc /* real bitpos */ @@ -196,9 +196,15 @@ static int __devinit setup_fam_10(struct pci_dev *pdev, struct k8temp_data *data { /* we need max temp */ data->sensorsp = SEL_TEMPMAX; - data->tcontrol_max = 70000; - data->name = (data->fam == 0x11) ? "fam11temp" : "fam10temp"; + if (data->fam == 0x10) { + data->name = "fam10temp"; + data->tcontrol_max = 70000; + } else if (data->fam == 0x11) { + data->name = "fam11temp"; + data->tcontrol_max = 100000; + } else + BUG(); return 0; } -- 1.6.0.3