drm/amd/amdgpu: Don't proceed into audio_fini if audio is disabled (DCEv8)
authorTom St Denis <tom.stdenis@amd.com>
Thu, 3 Mar 2016 14:31:49 +0000 (09:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 16:01:55 +0000 (11:01 -0500)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

index b059853d93bfd1ffdc4d494167a2cc796a049208..ab536d3ed965597e9fa998eb32cbeba4aa2a7659 100644 (file)
@@ -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;