Skip to content

Commit ac8aa75

Browse files
committed
drm/asahi: regs: Get device ref from platform dev
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 4bd0e17 commit ac8aa75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/asahi/regs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Resources {
156156

157157
Ok(Resources {
158158
// SAFETY: This device does DMA via the UAT IOMMU.
159-
dev: device::Device::from_dev(pdev),
159+
dev: pdev.get_device(),
160160
asc: asc_res,
161161
sgx: sgx_res,
162162
})

0 commit comments

Comments
 (0)