|
@@ -125,7 +125,7 @@ static int pch_wpt_init(struct pch_thermal_device *ptd, int *nr_trips)
|
|
|
*nr_trips = 0;
|
|
|
|
|
|
/* Check if BIOS has already enabled thermal sensor */
|
|
|
- if (WPT_TSS_TSDSS & readb(ptd->hw_base + WPT_TSS)) {
|
|
|
+ if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) {
|
|
|
ptd->bios_enabled = true;
|
|
|
goto read_trips;
|
|
|
}
|
|
@@ -141,7 +141,7 @@ static int pch_wpt_init(struct pch_thermal_device *ptd, int *nr_trips)
|
|
|
}
|
|
|
|
|
|
writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL);
|
|
|
- if (!(WPT_TSS_TSDSS & readb(ptd->hw_base + WPT_TSS))) {
|
|
|
+ if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) {
|
|
|
dev_err(&ptd->pdev->dev, "Sensor can't be enabled\n");
|
|
|
return -ENODEV;
|
|
|
}
|