File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -552,8 +552,7 @@ static ssize_t radeon_hwmon_show_temp_thresh(struct device *dev,
552552 struct device_attribute * attr ,
553553 char * buf )
554554{
555- struct drm_device * ddev = dev_get_drvdata (dev );
556- struct radeon_device * rdev = ddev -> dev_private ;
555+ struct radeon_device * rdev = dev_get_drvdata (dev );
557556 int hyst = to_sensor_dev_attr (attr )-> index ;
558557 int temp ;
559558
@@ -580,8 +579,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
580579 struct attribute * attr , int index )
581580{
582581 struct device * dev = container_of (kobj , struct device , kobj );
583- struct drm_device * ddev = dev_get_drvdata (dev );
584- struct radeon_device * rdev = ddev -> dev_private ;
582+ struct radeon_device * rdev = dev_get_drvdata (dev );
585583
586584 /* Skip limit attributes if DPM is not enabled */
587585 if (rdev -> pm .pm_method != PM_METHOD_DPM &&
You can’t perform that action at this time.
0 commit comments