Skip to content

Commit dfeb451

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

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)