From: Tom St Denis Date: Thu, 3 Mar 2016 14:31:49 +0000 (-0500) Subject: drm/amd/amdgpu: Don't proceed into audio_fini if audio is disabled (DCEv8) X-Git-Tag: v4.6-rc1~61^2~4^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84cffef127cce662e73f5f887c590ac582dcc845;p=karo-tx-linux.git drm/amd/amdgpu: Don't proceed into audio_fini if audio is disabled (DCEv8) Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index b059853d93bf..ab536d3ed965 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c @@ -1639,6 +1639,9 @@ static void dce_v8_0_audio_fini(struct amdgpu_device *adev) { int i; + if (!amdgpu_audio) + return; + if (!adev->mode_info.audio.enabled) return;