diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 8c9b2ef32c68..ac4efb0f1cb4 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c | |||
@@ -449,6 +449,9 @@ static ssize_t radeon_hwmon_show_temp(struct device *dev, | |||
449 | case THERMAL_TYPE_EVERGREEN: | 449 | case THERMAL_TYPE_EVERGREEN: |
450 | temp = evergreen_get_temp(rdev); | 450 | temp = evergreen_get_temp(rdev); |
451 | break; | 451 | break; |
452 | case THERMAL_TYPE_SUMO: | ||
453 | temp = sumo_get_temp(rdev); | ||
454 | break; | ||
452 | default: | 455 | default: |
453 | temp = 0; | 456 | temp = 0; |
454 | break; | 457 | break; |
@@ -487,6 +490,7 @@ static int radeon_hwmon_init(struct radeon_device *rdev) | |||
487 | case THERMAL_TYPE_RV6XX: | 490 | case THERMAL_TYPE_RV6XX: |
488 | case THERMAL_TYPE_RV770: | 491 | case THERMAL_TYPE_RV770: |
489 | case THERMAL_TYPE_EVERGREEN: | 492 | case THERMAL_TYPE_EVERGREEN: |
493 | case THERMAL_TYPE_SUMO: | ||
490 | rdev->pm.int_hwmon_dev = hwmon_device_register(rdev->dev); | 494 | rdev->pm.int_hwmon_dev = hwmon_device_register(rdev->dev); |
491 | if (IS_ERR(rdev->pm.int_hwmon_dev)) { | 495 | if (IS_ERR(rdev->pm.int_hwmon_dev)) { |
492 | err = PTR_ERR(rdev->pm.int_hwmon_dev); | 496 | err = PTR_ERR(rdev->pm.int_hwmon_dev); |