make device DrmDevice in disable_crts

This commit is contained in:
Alexander Daichendt 2026-06-29 20:42:23 +02:00 • committed by Victoria Brekenfeld
parent a9f2427c00
commit f5e0ba1594
3 changed files with 10 additions and 21 deletions

View file

@ -865,12 +865,9 @@ impl KmsGuard<'_> {
}
});
let supports_atomic = device.drm.device().is_atomic();
if let Err(err) = drm_helpers::disable_crtcs(
device.drm.device_mut(),
supports_atomic,
&disabled_crtcs,
) {
if let Err(err) =
drm_helpers::disable_crtcs(device.drm.device_mut(), &disabled_crtcs)
{
warn!("Failed to disable crtcs for disabled outputs: {err}");
}
}