drm/amdgpu: fix typo for vcn2.5/jpeg2.5 idle check
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / jpeg_v2_5.c
index c6d046d..c04c207 100644 (file)
@@ -477,7 +477,7 @@ static int jpeg_v2_5_set_clockgating_state(void *handle,
                        continue;
 
                if (enable) {
-                       if (jpeg_v2_5_is_idle(handle))
+                       if (!jpeg_v2_5_is_idle(handle))
                                return -EBUSY;
                        jpeg_v2_5_enable_clock_gating(adev, i);
                } else {