diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 4386cbac7f97..7d8d84eaea4a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -326,7 +326,7 @@ static struct attribute *hwmon_attributes[] = { | |||
326 | static umode_t hwmon_attributes_visible(struct kobject *kobj, | 326 | static umode_t hwmon_attributes_visible(struct kobject *kobj, |
327 | struct attribute *attr, int index) | 327 | struct attribute *attr, int index) |
328 | { | 328 | { |
329 | struct device *dev = container_of(kobj, struct device, kobj); | 329 | struct device *dev = kobj_to_dev(kobj); |
330 | struct amdgpu_device *adev = dev_get_drvdata(dev); | 330 | struct amdgpu_device *adev = dev_get_drvdata(dev); |
331 | umode_t effective_mode = attr->mode; | 331 | umode_t effective_mode = attr->mode; |
332 | 332 | ||