diff options
| -rw-r--r-- | drivers/thermal/x86_pkg_temp_thermal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c index 972e1c73722a..3d8d97232c62 100644 --- a/drivers/thermal/x86_pkg_temp_thermal.c +++ b/drivers/thermal/x86_pkg_temp_thermal.c | |||
| @@ -68,6 +68,10 @@ struct phy_dev_entry { | |||
| 68 | struct thermal_zone_device *tzone; | 68 | struct thermal_zone_device *tzone; |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | static const struct thermal_zone_params pkg_temp_tz_params = { | ||
| 72 | .no_hwmon = true, | ||
| 73 | }; | ||
| 74 | |||
| 71 | /* List maintaining number of package instances */ | 75 | /* List maintaining number of package instances */ |
| 72 | static LIST_HEAD(phy_dev_list); | 76 | static LIST_HEAD(phy_dev_list); |
| 73 | static DEFINE_MUTEX(phy_dev_list_mutex); | 77 | static DEFINE_MUTEX(phy_dev_list_mutex); |
| @@ -446,7 +450,7 @@ static int pkg_temp_thermal_device_add(unsigned int cpu) | |||
| 446 | thres_count, | 450 | thres_count, |
| 447 | (thres_count == MAX_NUMBER_OF_TRIPS) ? | 451 | (thres_count == MAX_NUMBER_OF_TRIPS) ? |
| 448 | 0x03 : 0x01, | 452 | 0x03 : 0x01, |
| 449 | phy_dev_entry, &tzone_ops, NULL, 0, 0); | 453 | phy_dev_entry, &tzone_ops, &pkg_temp_tz_params, 0, 0); |
| 450 | if (IS_ERR(phy_dev_entry->tzone)) { | 454 | if (IS_ERR(phy_dev_entry->tzone)) { |
| 451 | err = PTR_ERR(phy_dev_entry->tzone); | 455 | err = PTR_ERR(phy_dev_entry->tzone); |
| 452 | goto err_ret_free; | 456 | goto err_ret_free; |
