diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-11 03:50:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-11 03:50:09 +0000 |
commit | c1720ed58a9bbd6550580dd5b5e3a1093f58ff19 (patch) | |
tree | 0f23d2f5fa9a91e421b1a34cac2cc4d9293278a2 /sys | |
parent | 00a6870e5713ef953c76e7718d5482615a1987dc (diff) |
drm/amd/pm: return -ENOTSUPP if there is no get_dpm_ultimate_freq function
From Tom Rix
b175bc58641032cfdb89f92afd76939be2ae22b4 in linux 5.15.y/5.15.33
430e6a0212b2a0eb1de5e9d47a016fa79edf3978 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c b/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c index cadea7d9e63..71476791335 100644 --- a/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c +++ b/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c @@ -138,7 +138,7 @@ int smu_get_dpm_freq_range(struct smu_context *smu, uint32_t *min, uint32_t *max) { - int ret = 0; + int ret = -ENOTSUPP; if (!min && !max) return -EINVAL; |