Messages in this thread Patch in this message |  | | From | Danilo Krummrich <> | | Subject | [PATCH REF 23/24] gpu: nova-core: replace ARef<Device> with &'a Device in SysmemFlush | | Date | Tue, 28 Apr 2026 00:11:21 +0200 |
| |
Now that SysmemFlush is lifetime-parameterized, the ARef<Device> is unnecessary -- a plain &'a Device reference suffices.
Signed-off-by: Danilo Krummrich <dakr@kernel.org> --- 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 cbc42e98afca..e5a2c9d42f27 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::{ @@ -49,7 +48,7 @@ pub(crate) struct SysmemFlush<'a> { /// Chipset we are operating on. chipset: Chipset, - device: ARef<device::Device>, + device: &'a device::Device, bar: &'a Bar0, /// Keep the page alive as long as we need it. page: CoherentHandle, @@ -58,7 +57,7 @@ pub(crate) struct SysmemFlush<'a> { impl<'a> SysmemFlush<'a> { /// Allocate a memory page and register it as the sysmem flush page. pub(crate) fn register( - dev: &device::Device<device::Bound>, + dev: &'a device::Device<device::Bound>, bar: &'a Bar0, chipset: Chipset, ) -> Result<Self> { @@ -68,7 +67,7 @@ pub(crate) fn register( Ok(Self { chipset, - device: dev.into(), + device: dev, bar, page, }) -- 2.54.0
|  |