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 15a1192c1ec5..23fc1d32b937 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -1185,7 +1185,7 @@ static ssize_t amdgpu_hwmon_show_vddnb(struct device *dev, | |||
1185 | int r, size = sizeof(vddnb); | 1185 | int r, size = sizeof(vddnb); |
1186 | 1186 | ||
1187 | /* only APUs have vddnb */ | 1187 | /* only APUs have vddnb */ |
1188 | if (adev->flags & AMD_IS_APU) | 1188 | if (!(adev->flags & AMD_IS_APU)) |
1189 | return -EINVAL; | 1189 | return -EINVAL; |
1190 | 1190 | ||
1191 | /* Can't get voltage when the card is off */ | 1191 | /* Can't get voltage when the card is off */ |