diff options
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index dc75bb603ea5..984097b907ef 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c | |||
@@ -552,8 +552,7 @@ static ssize_t radeon_hwmon_show_temp_thresh(struct device *dev, | |||
552 | struct device_attribute *attr, | 552 | struct device_attribute *attr, |
553 | char *buf) | 553 | char *buf) |
554 | { | 554 | { |
555 | struct drm_device *ddev = dev_get_drvdata(dev); | 555 | struct radeon_device *rdev = dev_get_drvdata(dev); |
556 | struct radeon_device *rdev = ddev->dev_private; | ||
557 | int hyst = to_sensor_dev_attr(attr)->index; | 556 | int hyst = to_sensor_dev_attr(attr)->index; |
558 | int temp; | 557 | int temp; |
559 | 558 | ||
@@ -580,8 +579,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj, | |||
580 | struct attribute *attr, int index) | 579 | struct attribute *attr, int index) |
581 | { | 580 | { |
582 | struct device *dev = container_of(kobj, struct device, kobj); | 581 | struct device *dev = container_of(kobj, struct device, kobj); |
583 | struct drm_device *ddev = dev_get_drvdata(dev); | 582 | struct radeon_device *rdev = dev_get_drvdata(dev); |
584 | struct radeon_device *rdev = ddev->dev_private; | ||
585 | 583 | ||
586 | /* Skip limit attributes if DPM is not enabled */ | 584 | /* Skip limit attributes if DPM is not enabled */ |
587 | if (rdev->pm.pm_method != PM_METHOD_DPM && | 585 | if (rdev->pm.pm_method != PM_METHOD_DPM && |