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,
552
552
struct device_attribute * attr ,
553
553
char * buf )
554
554
{
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 );
557
556
int hyst = to_sensor_dev_attr (attr )-> index ;
558
557
int temp ;
559
558
@@ -580,8 +579,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
580
579
struct attribute * attr , int index )
581
580
{
582
581
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 );
585
583
586
584
/* Skip limit attributes if DPM is not enabled */
587
585
if (rdev -> pm .pm_method != PM_METHOD_DPM &&
You can’t perform that action at this time.
0 commit comments