From 17b6544ec14198b53bcd546f891b3b22d0a015b2 Mon Sep 17 00:00:00 2001 From: Danilo Krummrich Date: Tue, 26 May 2026 00:58:31 +0200 Subject: [PATCH] gpu: nova-core: replace ARef with &'bound Device in SysmemFlush Now that SysmemFlush is lifetime-parameterized, the ARef is unnecessary -- a plain &'bound Device reference suffices. Reviewed-by: Eliot Courtney Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot Link: https://patch.msgid.link/20260525225838.276108-4-dakr@kernel.org Signed-off-by: Danilo Krummrich --- drivers/gpu/nova-core/fb.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/nova-core/fb.rs b/drivers/gpu/nova-core/fb.rs index 3b3271790cc9..1fb65d4eb290 100644 --- a/drivers/gpu/nova-core/fb.rs +++ b/drivers/gpu/nova-core/fb.rs @@ -15,8 +15,7 @@ Alignable, Alignment, // }, - sizes::*, - sync::aref::ARef, // + sizes::*, // }; use crate::{ @@ -46,7 +45,7 @@ pub(crate) struct SysmemFlush<'sys> { /// Chipset we are operating on. chipset: Chipset, - device: ARef, + device: &'sys device::Device, bar: &'sys Bar0, /// Keep the page alive as long as we need it. page: CoherentHandle, @@ -55,7 +54,7 @@ pub(crate) struct SysmemFlush<'sys> { impl<'sys> SysmemFlush<'sys> { /// Allocate a memory page and register it as the sysmem flush page. pub(crate) fn register( - dev: &device::Device, + dev: &'sys device::Device, bar: &'sys Bar0, chipset: Chipset, ) -> Result { @@ -65,7 +64,7 @@ pub(crate) fn register( Ok(Self { chipset, - device: dev.into(), + device: dev, bar, page, })