OSDN Git Service

drm/amdgpu: fix typo for vcn2.5/jpeg2.5 idle check
[tomoyo/tomoyo-test1.git] / drivers / gpu / drm / amd / amdgpu / vcn_v2_5.c
index 2d64ba1..678253d 100644 (file)
@@ -1672,7 +1672,7 @@ static int vcn_v2_5_set_clockgating_state(void *handle,
                return 0;
 
        if (enable) {
-               if (vcn_v2_5_is_idle(handle))
+               if (!vcn_v2_5_is_idle(handle))
                        return -EBUSY;
                vcn_v2_5_enable_clock_gating(adev);
        } else {