From a57ec6dbbd39da1263cbd833e9e7df945f001758 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 11 Apr 2022 03:50:08 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1